CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    42

    SendMessage() Simulation

    I know it's possible to simulate a mouse click with SendMessage(), but is it possible to do a mouse drag and drop with it? And if so what is the exact code to do it?

    I don't want another method of doing it, just the way mentioned above. Thanks.

  2. #2
    Join Date
    Sep 2008
    Posts
    48

    Re: SendMessage() Simulation

    Hi,
    I don't think there is any Window's defined message available for Mouse Drag event.

    What you can do, you need to capture mouse move event and the same time, if mouse move occurs check if the mouse left button is down, if both conditions true then its a MouseDrag

    For MouseDrop you can check for Mouse Left Button up event.

    Is this what you are looking for ?

    Thanks
    Kiran

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured