Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get to a Bitmap handle from a filename?
Message
De
17/06/1998 09:21:27
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00108969
Message ID:
00109036
Vues:
48
>>Can anybody point me in the right direction here.
>>
>>I want to make calls to some WIN32Api routines that will manipulate bitmaps. I need to give a handle to a bitmap as an input parameter.
>>
>>So, for a given .BMP file, how do I load the bitmap data, and get the
>>handle??
>Look at:
>DECLARE INTEGER LoadBitmap IN Win32API;
> INTEGER hInstance, STRING @lpBitmapName
>you'll also need:
>DECLARE SHORT DeleteObject IN Win32API;
> INTEGER hObject,
>Pass the handle to this function when finished.
>
>I haven't used the first one, however, the documentation indicates that the first value of LoadBitmap may be null.
>
>hth,

I must have looked at that function 5 times this morning, but kept discounting it because it referes to a 'bitmap resource' not a file.

I'll give it a try. Thanks.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform