drag and drop using post/sendmessage

Announcements and discussion for PInvoke

drag and drop using post/sendmessage

Postby holaco » Mon Oct 04, 2010 4:05 pm

Hi All,

I am trying to find a way to preform drag and drop using API function SendMessage() or PostMessage(), I am using the following code but its not working:

API.Click(controlHandleStart, false, (ushort)RelativePointStart.X, (ushort)RelativePointStart.Y);//mouse down


API.Click(controlHandleEnd, true, (ushort)RelativePointEnd.X, (ushort)RelativePointEnd.Y);//mouse up

Basically what I am trying to do is to preform a drag and drop for an email in outlook I want to drag an email and drop it into a folder but i need to use post/sendmessage.

I just sending the mouse down on the drag location and then I send the mouse up on the drop location, I am not able to find way to send the mouse move message.

can anyone help plz...
Posts: 1
Joined: Mon Oct 04, 2010 4:04 pm

Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 0 guests