Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating OLE drag-and-drop data object
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Creating OLE drag-and-drop data object
Divers
Thread ID:
00937373
Message ID:
00937373
Vues:
59
I am using an Active-x object (a DBITech ctList box) and want to let the user drag something from it to another (standard VFP) object.

The DBITech listbox gives me an event for drag-out, so I have a place to put my code. My problem is how to create the OLE DataObject to contain the data I am dragging, which will subsequently be picked up by the target object.

The VFP doc says I can't create it programmatically. (From the HELP:)

>The DataObject object cannot be created programmatically
>and references to it become invalid once the OLE drag-and-drop
>operation is complete. The DataObject is passed as the
>oDataObject parameter in the OLEDragDrop, OLEDragOver, OLESetData,
>and OLEStartDrag events.

and those VFP methods don't exist for an active-x object.

Is there an API function that would let me create this object, or should I just simulate it programmatically?

TIA, Tom
Tom Green in Montreal
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform