Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLEDragDrop GetData() in BMP/WAV format?
Message
From
24/05/2005 16:05:47
 
 
To
23/05/2005 13:07:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01016102
Message ID:
01017253
Views:
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.

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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform