2013/2/24 Nikolay Sivov bunglehead@gmail.com:
This doesn't look very clean. I mean invoking *up handler from a *down one. Is this something that could be resolved with message loop like rbutton dragging was fixed?
TrackMouse contains the message loop. It returns FALSE when it receives LBUTTONUP (or any other button message), so calling LButtonUp here is almost exactly what happened before. I'm not sure if inlining the call would help here. Regards, Daniel