I want to ask about subclassing.
I know that we can subclass our form to catch messages come to the form..(WM_XXX)
But I want to know if I can subclass other window..
Like this I mean:
think that there is a window on desktop..(poor a vb form, Form.exe)
I handle it's hwnd.
And then I write another vb project that has codes for subclassing windows..
If I change this line
OldWindowProc = SetWindowLong(Form1.hwnd, GWL_WNDPROC, AddressOf NewWindowProc)
OldWindowProc = SetWindowLong(OtherHWND, GWL_WNDPROC, AddressOf NewWindowProc)
and update NewWindowProc callback function like this..
Can I subclass other exe window form? (I tried and I couldn't do.)
can I catch messages come to other windows ? And how can I do that?
Think WinSPY. locating icon to a window and shows information about that window..
So I want to do like this at the end, Locating an icon to a window and subclass it and show all message traffic with that window..(maybe "window messages monitor")
Need your help..