RE: [GD-Windows] Out of window mouse up messages
Brought to you by:
vexxed72
From: Brian S. <bs...@mi...> - 2002-02-07 02:35:28
|
WM_MOUSEMOVE tells you which buttons are pressed. If you get one with a button up when your isDragging flag is set, you know someone released outside your window, so you can just execute your EndDrag() function (or CancelDrag(), or whatever). > -----Original Message----- > From: Brian Hook [mailto:bri...@py...] > Sent: Wednesday, February 06, 2002 5:23 PM > To: gam...@li... > Subject: [GD-Windows] Out of window mouse up messages >=20 > I'm tracking drag state in my app, however I'm running into a problem > when the mouse button is pressed, the cursor is dragged outside the > window, and then the mouse button is released. I never see the release, > which gets my app confused. >=20 > Is there a simple way of getting around this, or should I simply check > the mouse button state every time I get a move message to verify its > authenticity? >=20 > Brian |