CToolBarCtrl::AddBitmap
intAddBitmap(intnNumButtons**,UINTnBitmapID);**
intAddBitmap(intnNumButtons**,CBitmap*pBitmap);**
Return Value
Zero-based index of the first new image if successful; otherwise – 1.
Parameters
nNumButtons
Number of button images in the bitmap.
nBitmapID
Resource identifier of the bitmap that contains the button image or images to add.
pBitmap
Pointer to the CBitmap object that contains the button image or images to add.
Remarks
Call this function to add one or more button images to the list of button images stored in the toolbar control. You can use the Windows API to map colors before adding the bitmap to the toolbar.
If you pass a pointer to a CBitMap object, you must ensure that the bitmap is not destroyed until after the toolbar is destroyed.
CToolBarCtrl Overview | Class Members | Hierarchy Chart
See Also CToolBarCtrl::AddButtons, CToolBarCtrl::InsertButton, CToolBarCtrl::AddString, CToolBarCtrl::AddStrings