|
Actually after hooking you can use GetWindowLong to to get Window procedure of any window and you can modify the charater from there.
look for that in more Detail in the link given by me in last post
"I Think this Will Help"
[Vote One Here,.....]
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
if i'm going to do that,i think i have to get the Window procedure of all windows of all processes...i think that's a very hard work..isn't there an easier way..
|
|
|
|
|
This is not a small question!
There are aticles at CP that may give you the information that you seak.
I'll tell you this much, you need to use hooks.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
After I read some articles about building MFC Dll in this website,
I tried to export my class as MFC dll. However, I also want my class to
handle messages, such as PostMessage, SetTimer, etc.
I want to ask that how can I use message handling ability in my class which is exported as MFC Dll?
Thanks
|
|
|
|
|
Simply derived class from the CCmdTarget or it decesendent for enabling the messaage handlling in that class.
"I Think this Will Help"
[Vote One Here,.....]
<h5
alok="" gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
Hello, I'm developing a application that does the communication wit TCP/Ip between two computers and send files between them, but i have some questions like i want to know what is the best way to develop it, for example socket or i don't know. Somebody can say me the best way ant what libraries can i use for develop it.
Thanks.
|
|
|
|
|
|
Thanks Ravi, but i have other question because i think that u know a lot. With this example i can see how can i implement my communication betwwen 2 computers with files but my applicacion start when i connect with a USB device and i have to pass the ID of the device to the server and the server has to see what files can download this device from the server. And i want to know how can i integrate my program that control the USB device and i know the ID of the device to pass this ID to the server and what will be the best way to develop the permissions in the server ( with a data base, only with text files, can u help me?, it's only to say to the client that whatever device has permiss to download for example only 5 files).
Thank you very much for your help.
/Jorge
|
|
|
|
|
You could check out http://www.msgconnect.com/[^] I haven't used it, but it looks good.
And as Ravi said there are lots of articles here on tcp/ip. Would be nice to abstract your problem out to higher level concepts than tcp/ip though.
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
densitet wrote:
the best way to develop it
Well that is up to you (unless you have someone to bounce your ideas of of)!
densitet wrote:
socket or i don't know.
I understand why you asked this question, but we both know that it is bogus.
Basicaly, what you see is what you get!
Curiosity: What is this sopposed to mean, "densitet"? (OpenOffice spell checher - has no ideas, and neither do I.)
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
after I finished a dialogue template ,I want to build the class "CMyDlg" of the dialogue template ,but the problem arised: Unable to open the files (D:\ly\CMyDlg.h,D:\ly\CMyDlg.cpp)for class "CMyDlg" . Who can tell me why? thanks!
|
|
|
|
|
This is not an uncommon message from ClassWizard. I get it about 30% of the time when creating a new class. To ensure that your class gets properly added to the project, exit the IDE, delete the temporary files (e.g., .opt, .ncb, .aps, .clw) , and re-open the project. The next time you invoke ClassWizard (Ctrl+W), all should be well.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
thank you, I get it. but why ? Is that vc's bug?
|
|
|
|
|
Yes, it is a bug. I see the same thing happen on all my systems (about 5 current - many in the past). Does not seem to matter what OS or if virus scanner, spybot scanner, firewall, etc. are installed and running or not.
|
|
|
|
|
I really need the email address of Allan Nielsen who is the author of the article "SuperGrid"
|
|
|
|
|
|
Hi, I am having a strange issue with StretchDIBits on Win2000 Server and multi-monitor. If the primary monitor is smaller then the secondary, and it is at the bottom.
When using StretchDIBits and goto PrintPreview I initially get a large white unpainted area in the preview window. The non-white part appears to be the same depth as the primary monitors height. Now if I invalidate the white parts, drag some other app over it, it now paints the invalidated white part with the correct bit of the image. Minimise then Restore the white part is back.
If I try using SetDIBitsToDevice this works without any white bits. But I must use StretchDIBits.
I have tried a number of other apps and if they use StretchDIBits, they also have issues.
Anyone got any thoughts
Cheers
Jason Carter
|
|
|
|
|
Just an idea here...
Perhaps the StrechDIBits is internally limiting itself to the coordinates of the initial device resolution?
Instead, maybe you can try this...
Create a memory DC the size of the combined monitors.
Perform the StrechDIBits into the memory DC
Copy the memoy DC image to the 'virtual' DC of the combined monitors.
|
|
|
|
|
Great idea, we already do this code for double buffered screen drawing code. I have already tried to modify this. But we still get the same problem. I am also trying to use the good old MFC Sample DIBLook and this also suffers the same problem.
"Create a memory DC the size of the combined monitors"
Do you mean a CreateCompatibleDC(pDC)?
|
|
|
|
|
Yes, and I reiterate this is what I would 'try' since I have not solved this problem before either..
A memory DC exists only in memory. When the memory DC is created, its display surface is exactly one monochrome pixel wide and one monochrome pixel high. Before an application can use a memory DC for drawing operations, it must select a bitmap of the correct width and height into the DC. To select a bitmap into a DC, use the CreateCompatibleBitmap function, specifying the height, width, and color organization required.
You might need to CreateCompatibleDC() then CreateCompatibleBitmap() (this bitmap is just to force the compatible DC into the correct color depth and dimensions). Then perform your StretchDIBits into the 'compatible' DC. If you are lucky follow all that with a single copy operation of this compatible DC to one representing the entire 'screen' (across the two monitors), otherwise, you will need two copy operations, one targeting the DC of each monitor.
|
|
|
|
|
We already use this method for flicker free screen rendering (double buffering). We did not use the double buffering for printer DC. I have now tried this double buffering for a print preview DC and the problem still exists.
Looks like a Microsoft bug report time.
Thanks for you thoughts
|
|
|
|
|
How can i change the color of the title bar of my dialog/sdi/mdi. I dont want to use a seperate class for this purpose.
|
|
|
|
|
Hello Wasif
As far as i know color of the title bar of any window is decided by the currently applied theme or selected color in the "Appearence" Tab of "Display properties" System dialog.
i guess by some way or other if you could get that system Dialog and change these settings programatically but doing this will change title color of all windows. or you could also try to search about HTHEME in MSDN
any ways i hope u will get some clue from this message and will start thinking in a different direction.
All the best
Muhammad Azam
1st Semester M.Engg
NED UET
|
|
|
|
|
As mentioned by Muhammed, the Title bar colour is determined by
your current colour scheme. If you want to create your own unique title bar window, you probably have to handle the drawing yourself.
This would probably involve handing
the WM_NCPAINT message. I don't think there is any lightweight solution to your request, but if you still want to pursue that idea, there are a few articles on CP about creating custom windows title bars.
I Dream of Absolute Zero
|
|
|
|
|