Jump to content
  • Advertisement
Sign in to follow this  
Trillian

[win32] Non-client events

This topic is 4261 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 have a problem with my application : It doesn't handle non-client mouse events! If I click in my window's client area and then I drag the mouse and release outside my window, my appication will never know that the mouse was released and will continue thinking that it is down, which is annoying and causes bugs. I have all of the "case WM_NC*BUTTON* :" in my event switch statement, but they never get called. I think the problem is that my window hasn't got the fous when I release so it doesn't get the message. How can I get those event messages?

Share this post


Link to post
Share on other sites
Advertisement
...mmh...

I just had another look at MSDN and, if I understand well, Non-client events are events that happen in the window but not in the client area, I thought it meant outside the window.

So there's no way to catch mouse events outside of my window... then what should I do? should I consider that all buttons are released when the mouse leaves my window rectangle?

Share this post


Link to post
Share on other sites
To elaborate a little on microdot's comment, the non client area is the window frame (or chrome), including the title bar.

A drag-drop tutorial can be found here.

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!