Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ExtractIcon or ExtractAssociatedIcon...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00653833
Message ID:
00660438
Vues:
57
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform