• Advertisement

Archived

This topic is now archived and is closed to further replies.

Dragging with events.

This topic is 5705 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m creating a GUI to be used in some programs that I have written but I''m trying to work out a means of handling some basic user interactions with the windows. I have been trying to use the WM_MOUSEMOVE message and checking if the wParam contains MK_LBUTTON. I''ve rewritten my code twice now but it''s still having the same issues with not dragging correctly. Is this means of using the mouse to check for a drag a bad way to do this, or is my code just buggy? I only know that which I know, but I do not know what I know.

Share this post


Link to post
Share on other sites
Advertisement
SetCapture & ReleaseCapture should be useful with dragging.... SetCapture when u 1st hold down the LBUTTON, ReleaseCapture when dragging ends.

Share this post


Link to post
Share on other sites

  • Advertisement