CToolBarCtrl help
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
In the MSDN, CToolBarCtrl help file is below.
To use a CToolBarCtrl object, you will typically follow these steps:
- Construct the CToolBarCtrl object.
- Call Create to create the Windows toolbar common control and attach it to the CToolBarCtrl object. Indicate the style of toolbar by using styles, such as TBSTYLE_TRANSPARENT for a transparent toolbar or TBSTYLE_DROPDOWN for a toolbar that supports drop-down style buttons.
- Identify how you want the buttons on the toolbar displayed:
(1)•To use bitmap images for buttons, add the button bitmaps to the toolbar by calling AddBitmap.
(2)•To use images displayed from an image list for buttons, specify the image list by calling SetImageList, SetHotImageList, or SetDisabledImageList.
(3)•To use string labels for buttons, add the strings to the toolbar by calling AddString and/or AddStrings.
I don't understand step 3, (1),(2),(3) I could use either one of it(like only use (2)only), or I can use (2) and (3) together. Sorry for not fully understanding to read the MSDN.