Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ExtractIcon or ExtractAssociatedIcon...
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00653833
Message ID:
00660438
Views:
62
>>That was it! Interestingly, the results are the same as the old call to OleSavePictureFile().
>
>I think that SavePicture(), OleSavePictureFile() and Save method of OLE Picture object are doing the same. And may be you don't know (at least it not mentioned in documentation) that VFP picture object, used with LoadPicture() and SavePicture(), in fact is well known for VB developers StdPicture object and has such properties as Type, Handle, Height and Width.
>For example, you can easily get HBITMAP or HICON from picture object:
>
>oPict = LoadPicture("somepict.bmp")
>If oPict.Type = 1    && PICTYPE_BITMAP
>    hBitmap = oPict.Handle
>EndIf
>
Interesting infomation, Alexander. After playing around with the picture object in VFP 7.0, I found all the properties. Intellisense is wonderful with these things.

I also had figured out (or rather presumed) that SavePicture actually maps to the undocumented OleSavePictureFile() function. This information seems to be confirmed by the Dependency Walker.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform