Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLEDragDrop GetData() in BMP/WAV format?
Message
De
24/05/2005 16:57:01
 
 
À
24/05/2005 16:05:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01016102
Message ID:
01017283
Vues:
42
>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.
>

Christian,

I have tested from several apps. When an image is drag from other apps then drop into VFP, if there is a CF_BITMAP data, it always has CF_DIB. But if it is CF_DIB it doesn't have to have CF_BITMAP.

You can try it yourself. However it is a good advice for defends code as always :)
Regards
Herman
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform