Results 1 to 3 of 3

Thread: Const WM_SETCURSOR = &H20

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    46

    Post

    Hello, this const i wrote on the subject of this message is the name of the message that windows send to a window when the mouse i hover over the title of the window. When the user click the minimized, maximize or close button on the window title this message sent with the parameters HT_MIN, HT_MAX and HT_CLOSE depend on which button you hover, the second parameter is the mouse event and it's WM_RBUTTONDOWN, WM_LBUTTONDOWN, WM_RBUTTONUP and so on.

    What is like to know?
    How can i catch the messages that sent to all the windows onscreen with this type of message and pass on the message so i will not disable the button functionality.

    Is sum: i need to catch all the messages that their type is WM_SETCURSOR and the mouse event is WM_RBUTTONDOWN.

    Thank you very much for the help,
    Kiron.

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    You can't catch the message for all windows on screen in VB. You need to write som C++ dlls for that.

    Otherwise you can just subclass the windows as normal as long as they're in your APP, Ther'll be a tutotial on subclassing somewhere in VB API I expect.

  3. #3
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

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