• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 762
  • Last Modified:

Loading Bitmaps to ToolBar

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
Heinig
Asked:
Heinig
1 Solution
 
galkinCommented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now