LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading bitmaps from the Windows resource

Hello,
With CVI 7.o Its possible to load the UIR-File from the windows resource(On using "Embed Project .UIRs").
Is there a simple way (without loading the resource with the windows API directly) to load bitmaps form the resource too? I need them in the toolbar control!

Thanks

Babak
0 Kudos
Message 1 of 3
(3,199 Views)
No, you cannot extract embedded bitmaps without using the Windows API.

What you can do is create a UIR to hold all your bitmaps. This UIR would consist of a bunch of picture controls, one for each bitmap you want to hold. Or you could store all your bitmaps in a single picture ring control.

At run time, you'd load this panel from the embedded UIR, and you can then extract the bitmaps from the controls using the GetCtrlBitmap function.

Luis
NI
0 Kudos
Message 2 of 3
(3,185 Views)
LuisG wrote:
> No, you cannot extract embedded bitmaps without using the Windows
> API.<br><br>What you can do is create a UIR to hold all your bitmaps.
> This UIR would consist of a bunch of picture controls, one for each
> bitmap you want to hold. Or you could store all your bitmaps in a
> single picture ring control.<br><br>At run time, you'd load this
> panel from the embedded UIR, and you can then extract the bitmaps
> from the controls using the GetCtrlBitmap function.<br><br>Luis<br>NI

Thanks,

Babak


0 Kudos
Message 3 of 3
(3,178 Views)