Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get to a Bitmap handle from a filename?
Message
 
To
17/06/1998 03:59:00
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00108969
Message ID:
00109032
Views:
50
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform