Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLEDragDrop GetData() in BMP/WAV format?
Message
De
24/05/2005 16:05:47
 
 
À
23/05/2005 13:07:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01016102
Message ID:
01017253
Vues:
43
Hi,

just want to throw in that this is buggy ..
#define CF_DIB 8
if oDataObject.GetFormat( 2 )
  lcData = oDataObject.GetData( CF_DIB )
  strtofile( lcData, "myimage.dib" )
  this.picture = "myimage.dib"
endif
only because the Dataobject contains data of type CF_BITMAP doesn't neccessarily mean that there's also data of type CF_DIB .. Word puts images in both formats into the dataobject .. but that doesn't have to be true for other applications .., it's up to the application you're dragging from if there is CF_DIB data, CF_BITMAP or both.

in the "VFPInstallDir\Samples\solution\tahoe" directory is a form called
querydd.scx which enumerates the available datatypes into a listbox, you may have a look at it.

Regards
Christian
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform