Results 1 to 7 of 7

Thread: Subclassing

  1. #1

    Thread Starter
    Addicted Member rbnwares's Avatar
    Join Date
    Sep 2000
    Location
    Philippines
    Posts
    142

    Angry

    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.
    Stupidity is better than cure.

    VB6 SP5 Enterprise Ed.
    C, Pascal, VC++ 6.0


    Running Win98 SE and Win2000 Prof. Ed.


    Email me at : [email protected]

  2. #2
    Guest
    I believe you would need to create a C++ DLL for subclassing windows that are not in your thread.

  3. #3
    Addicted Member
    Join Date
    Mar 2000
    Location
    Gainesville, FL
    Posts
    131
    See if you can get your hands on a copy of Spyworks from Desaware. http://www.desaware.com

  4. #4
    Guest
    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++.

  5. #5

    Thread Starter
    Addicted Member rbnwares's Avatar
    Join Date
    Sep 2000
    Location
    Philippines
    Posts
    142

    Talking

    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.
    Stupidity is better than cure.

    VB6 SP5 Enterprise Ed.
    C, Pascal, VC++ 6.0


    Running Win98 SE and Win2000 Prof. Ed.


    Email me at : [email protected]

  6. #6
    Guest
    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.

  7. #7

    Thread Starter
    Addicted Member rbnwares's Avatar
    Join Date
    Sep 2000
    Location
    Philippines
    Posts
    142

    Talking

    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?
    Stupidity is better than cure.

    VB6 SP5 Enterprise Ed.
    C, Pascal, VC++ 6.0


    Running Win98 SE and Win2000 Prof. Ed.


    Email me at : [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width