BCGControlBar Pro for MFC
static BOOL CBCGPToolBar::AddToolBarForImageCollection ( UINT  uiResID,
UINT  uiBmpResID = 0,
UINT  uiColdResID = 0,
UINT  uiMenuResID = 0,
UINT  uiDisabledResID = 0,
UINT  uiMenuDisabledResID = 0 
)
static

Loads a bitmap with toolbar images from the resources and adds it to the collection of toolbar images.

Returns
Nonzero if successful; it is 0 if uiResID or uiBmpResID do not specify valid resource IDs, or another error occurs.

Call this function to load a bitmap with toolbar images from the resources and add it to the collection of toolbar images. The AddToolBarForImageCollection function creates a temporary toolbar object and calls CBCGPToolBar::LoadToolBar.

Parameters
uiResIDResource ID of a toolbar whose images should be loaded.
uiBmpResIDResource ID of a bitmap with toolbar images to load.
uiColdResIDResource ID of a bitmap with "cold" toolbar images to load.
uiMenuResIDResource ID of a bitmap with menu images to load.
uiDisabledResIDResource ID of a bitmap with disabled toolbar images to load.
uiMenuDisabledResIDResource ID of a bitmap with disabled menu images to load.