Solved

Loading Bitmaps to ToolBar

Posted on 1998-03-05
1
721 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 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

19 Experts available now in Live!

Get 1:1 Help Now