Red Gate forums :: View topic - drag and drop using post/sendmessage
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

drag and drop using post/sendmessage

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
holaco



Joined: 04 Oct 2010
Posts: 1

PostPosted: Mon Oct 04, 2010 5:05 pm    Post subject: drag and drop using post/sendmessage Reply with quote

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

System.Threading.Thread.Sleep(200);

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...
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group