Sign in to follow this  

[win32] Non-client events

This topic is 4070 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
...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

This topic is 4070 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this