Solved

Loading Bitmaps to ToolBar

Posted on 1998-03-05
1
725 Views
Last Modified: 2013-11-20
I want to load a Bitmap to my Toolbar at runtime.
The user can change the bitmaps. Now the Toolbar should display the new bitmap.
How?
0
Comment
Question by:Heinig
1 Comment
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
ID: 1316769
Use LoadBitmap to load bitmap from resources or LoadImage to load bitmap from file.  Then use CToolBarCtrl::AddBitmap to add bitmap to the toolbar. To replace bitmap on existing buttons use TB_REPLACEBITMAP message.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
List out all word 7 259
notReplace  challenge 53 116
MaxSpan challenge 9 80
mapAB Challlenge 35 126
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now