Detect whether mouse is down

Hello all,

Typically in an app, I just use the WM_LBUTTONDOWN and WM_LBUTTONUP messages to process whether the button is up or down, but when the button is released outside the client area, the program acts as if the button is still down when the cursor returns. I need to just check at any given moment whether the button is down or not. I remember solving that problem in the past, but for the life of me I can't recall how to do it. Anyone know?

Thanks in advance.
Last edited on
closed account (z05DSL3A)
Read up on the SetCapture[1] Function.

[1] http://msdn.microsoft.com/en-us/library/ms646262.aspx
Topic archived. No new replies allowed.