emccarty
June 13th, 2009, 05:14 PM
What I would like to do is to have the system ignore WM_MOUSEMOVE events. So on WM_LBUTTONDOWN start ignoring and then on WM_LBUTTONUP start listening again. BlockInput() would mean I never get the button up message. Is this possible?
Thank you!
GameZelda
June 13th, 2009, 07:17 PM
What do you want to do exactly? Stop the mouse until the user clicks again?
JVene
June 13th, 2009, 07:41 PM
It sounds like what you want is a typical SetCapture/ReleaseCapture cycle. On button presses, for example, the button window executes a SetCapture, all subsequent moves are then "ignored" as it were - no other windows get move messages, and the button still lets the cursor move, but doesn't let go of the message traffic - though you could force the issue in a move response by forcing the location of the mouse no matter what - still holding capture.
ReleaseCapture is called only on the mouse up message.