Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Drag and Drop
Message
From
15/09/1999 10:38:50
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00264920
Message ID:
00264929
Views:
20
I suppose you could, using the x and y, calculate how many nodes down from the top of the control the pointer was at and then indirectly reference the node via the Node(i) collection.


>I have 2 TreeView ActiveX controls, I want to drag and drop from one to the other one, I can get all the information I need from the source dragged using the OleStartDrag method, but when the Drag is finished in the other TreeView control, this is, when the OLEDragDrop even is fired in the receiving control how can I know the node (line on the treeview) where the drop action was ended.
>
>The OleDragDrop method gets these parameters:
>LPARAMETERS data, effect, button, shift, x, y
>So I already know the x,y position of the mouse then the drag finishad, but how could I know or translate this position to the node that was targeted?
>
>Thanks in advance for your tips!
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform