BCGControlBar Pro for MFC
int CBCGPToolBarImages::AddImage ( HBITMAP  hbmp,
BOOL  bSetBitPerPixel = FALSE,
BOOL  bFitImage = FALSE,
BOOL  bPremultiplyAlpha = FALSE 
)

Adds a new bitmap to a collection of toolbar images.

Returns
A new number of toolbar images maintained by the CBCGPToolBarImages object if the new bitmap was added successfully; otherwise -1.

Call this function to extend the collection of toolbar images maintained by the CBCGPToolBarImages object.

Parameters
hbmpSpecifies the handle to Windows bitmap to add.
bSetBitPerPixelSet it to TRUE if you wish to modify internal bit per pixel value.
bFitImageTells whether an image should be fitted inside the image list item bounds.
bPremultiplyAlphaTells whether pre-multiplication operation should be performed for the added image.