Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use Windows to Create Windows
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00157927
Message ID:
00157938
Vues:
21
>Hi,
>
>Tks for your publications.
>
>I read your FOWPRO ADVISOR - AUGUST 1998 publication.
>But I can't do what I want(?)
>
>Is it possible to use ExtractIcon
>1) to handle or create a Object Reference ( used in ImageList )
>2) to convert to VFP format ( BMP )
>
>I remenber I see some WIN32 API like CreateBitMap, SelectObject but i know nothing about it
>I there a solution
>
>Tks
>
Hi Marcel,

Unfortunately, the direct answer to your questions is that I don't believe that it is. It is possible in pure VFP to create a bitmap on the fly using API calls. The bitmap (or icon), however, must be displayed. I wrote a small application that took object references, and converted the image into a bitmap. The only problem that I had was that I create (by hard coding) the color table (known as the RGBQuadArray) for a 16 color bitmaps. I did this because the API call to create it was returning an invalid table. I think that the reason was that I was running something like 24 bit color, which doesn't need this structure. Anyway, I haven't gotten around to playing with this further (and a number of other things either).

There's a public domain program called IconSucker that can extract the icons from executables and dlls. I got my copy at what used to be www.windows95.com. I think that the URL has changed, however.
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