is there any way you could set up a wndproc for an outside window that was found from findwindow() or enumwindows()?
Printable View
is there any way you could set up a wndproc for an outside window that was found from findwindow() or enumwindows()?
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!
Look into SetWindowLong() which you can use sometimes to change a windows wndproc.
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.