Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Drag and Drop
Message
De
15/09/1999 10:38:50
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00264920
Message ID:
00264929
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform