automate a drag and drop operation
Posted on 2004-10-25
Pls help. I want to automate a the process of dragging a particular treeview item and drop it on another treeview control (both treeview controls are child windows of another application running on win2000) .I
I tried by sending mouse (WM_)mouse messages to mimic the clicking of a treeview node and wm_lbuttonup message to the target treeview but nothing worked.
I understand that in the other application the first treeview control is capturing the mouse when ever a mouse is held down .(found using the spy++)
But i have no idea ,as how to force a window in another application to capture the mouse and make it believe that an actual dragging operation is underway.