Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get to a Bitmap handle from a filename?
Message
 
À
17/06/1998 03:59:00
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:
00109032
Vues:
51
>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,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform