PDA

Click to See Complete Forum and Search --> : Subclassing


rbnwares
Dec 30th, 2000, 07:29 AM
Can I possibly get those messages sent by Windows to other windows that are not owned by my application? For example, I wanted to detect if a paint event for that window occurs and act accordingly. For example the window is the handle of the taskbar. Any help would be appreciated.

Dec 30th, 2000, 12:11 PM
I believe you would need to create a C++ DLL for subclassing windows that are not in your thread.

Raydr
Jan 3rd, 2001, 08:53 PM
See if you can get your hands on a copy of Spyworks from Desaware. http://www.desaware.com

Jan 4th, 2001, 09:52 AM
I assume Spyworks is some type of program; if a program is what you want, then simply use Spy++, which is shipped with Visual C++.

rbnwares
Jan 6th, 2001, 03:30 AM
yeah, I have seen that Spy++. If it was possible with VC++ then also in VB. I think it is possible but I don't have any idea how. :)

Jan 6th, 2001, 04:51 PM
lol, it should be the other way around. If it's possible in VB, then it's possible in VC++. VC++ can do many things that VB can't. IF you want to do this in VB, you need to create a Standard DLL (using C++, because VB can only create ActiveX and OLE DLL's) and use this within your App.

rbnwares
Jan 7th, 2001, 01:48 AM
I see... That's what I think of. I think most of the functions in VC++ is also API. What's the difference between subclassing and hooks. Isn't they related?