Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have buttons of toolbar and I must insert bitmap inside... I tried with copy and paste, but bitmap has 24 bit so I can't do in this way. I must do with code.

What I have tried:

I tried what I wrote... Can I see an example?
Posted
Updated 27-Oct-23 4:57am
v2

You already posted this question at Error when I try to load toolbar[^], and I have explained what you need to do. Please do not repost the same question. If you do not understand how to create a Toolbar resource then study CToolBar Class | Microsoft Learn[^].
 
Share this answer
 
If I remember correctly toolbars are wanting 16-bit bitmaps. So you need to create them in this format.
Best way is to use some file tool and not doing the hard work via code.
 
Share this answer
 
Comments
Richard MacCutchan 27-Oct-23 4:24am    
Visual Studio contains an editor that creates toolbar bitmaps.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900