Lescha
asked on
Basic Mouse Events
I can't seem to find the WM_DRAG message! There is WM_XBUTTONDOWN, WM_XBUTTONUP, WM_DBLCLICK and WM_MOUSEMOVE, but no message for dragging! Do I have to implement it myself, by catching the DOWN and UP events? Same question about "click" message. Do I have to respond to mouse-up as if it were a click?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
there isn't one :(
> Do I have to implement it myself
yes
> Do I have to respond to mouse-up as if it were a click
yes
why did you think there would be a WM_DRAG message ?
normally on a WM_xBUTTONDOWN you would do a setcapture and set a flag (bDragging=TRUE or something like that)
and then in WM_MOUSEMOVE messages you would do a check for dragging and perfrom your drag operations
then in WM_xBUTTONUP you would do you end drag and releasecapture