Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get to a Bitmap handle from a filename?
Message
From
17/06/1998 11:33:33
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:
00109098
Views:
26
>>
>>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.
>I noted the same reference. However, there are other API functions that refer to "resource" which mean file, or loaded window's resource (handle). While the function documentation doesn't specifically mention .BMPs, it does mention .EXEs as well as loaded resources. Given that, I would say that it's at least worth a try. About the only thing that can happen is that the function will fail.
>
>Please let me know how this works out.

LoadBitmap didn't seem to do the trick at all. But once I found my Technet CD I found atricle Q158898 which gives a (lengthy) example using LoadImage.

Once i've translated it and tested it I'll let you know what happens.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform