is there any way you could set up a wndproc for an outside window that was found from findwindow() or enumwindows()?
is there any way you could set up a wndproc for an outside window that was found from findwindow() or enumwindows()?
In a perfect world every dog would have a home and every home would have a dog.
Visit My Web Site, Canine Programming
I use Win32 API
Do you mean another program's window? I'm not sure you can do that. The wndproc for that window would already be written.
>> In a perfect world every dog would have a home and every home would have a dog. <<
Yes! I second that!
1978 Silver Anniversary Corvette
Look into SetWindowLong() which you can use sometimes to change a windows wndproc.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
The window would have to be part of the same process, as the memory locations of the variables in one process would be meaningless in another. You can send messages between windows, or implement hooks that trap messages before they are sent to the relevent window, look up SetWindowsHookEx(), if you want to try the latter.
zen