Jump to content
  • Advertisement
Sign in to follow this  
Trillian

[win32] mouse leave

This topic is 4264 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I want to know when the mouse leaves my window. I've looked at TrackMouseEvent but it doesn't work : I get a WM_MOUSELEAVE when my program starts and then I get no more notifications. Is there another way to know this?

Share this post


Link to post
Share on other sites
Advertisement
Here is what the MSDN states:

The mouse left the client area of the window specified in a prior call to TrackMouseEvent. All tracking requested by TrackMouseEvent is canceled when this message is generated. The application must call TrackMouseEvent when the mouse reenters its window if it requires further tracking of mouse hover behavior.

You need to trap the event and when the mouse moves back into the window, reset the event.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!