BCGControlBar Pro for MFC
virtual BOOL CBCGPToolBar::LoadBitmap ( UINT  uiResID,
UINT  uiColdResID = 0,
UINT  uiMenuResID = 0,
BOOL  bLocked = FALSE,
UINT  uiDisabledResID = 0,
UINT  uiMenuDisabledResID = 0 
)
virtual

Loads toolbar images from the application resources.

Returns
Nonzero if successful; otherwise 0.

This function loads the images for the application toolbars from the resources.

The LoadBitmap member function is called from the LoadToolBar() function and can be overridden in a CBCGPBaseToolBar - derived class to perform a custom resource loading.

You can call the LoadBitmap function explicitly when the toolbar is being created.

Parameters
uiResIDResource ID of the bitmap, which contains hot toolbar images.
uiColdResIDResource ID of the bitmap, which contains cold toolbar images.
uiMenuResIDResource ID of the bitmap, which contains regular menu images.
bLockedSpecifies whether the toolbar is locked or not.
uiDisabledResIDResource ID of the bitmap, which contains disabled toolbar images.
uiMenuDisabledResIDResource ID of the bitmap, which contains disabled menu images.