Click here to Skip to main content
15,886,088 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The title of my question is some how ambiguous.What I mean is: given a number of bitmaps, how do I construct my tool bars with them without using the bitmap editor that comes with VS.I know it some how has to do with using image lists.
Posted
Comments
H.Brydon 1-Feb-14 17:38pm    
You seem to have several questions in the Q&A section that are likely answered by looking at the basic Microsoft documentation on how to do exactly what you want...

I learned how to create a Windows app tool bar in 1992 using the most basic compiler/IDE documentation available at the time.

1 solution

Why dont you simply read the MSDN Doku to answer this Question ?

Create an ImageList and send TB_SETIMAGELIST message to the Toolbar control.

C++
// Create the image list.
g_hImageList = ImageList_Create(..)

// Set the image list.
SendMessage(hWndToolbar, TB_SETIMAGELIST, (WPARAM)ImageListID, (LPARAM)g_hImageList);


For detailed explanation on how to use the Win32 Toolbar control, you can read this MSDN article.
http://msdn.microsoft.com/en-us/library/bb760446%28v=VS.85%29.aspx[^]
 
Share this answer
 
v2

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