Condividi tramite


CMFCToolBar::LoadBitmap

Loads toolbar images from application resources.

virtual BOOL LoadBitmap(
   UINT uiResID,
   UINT uiColdResID=0,
   UINT uiMenuResID=0,
   BOOL bLocked=FALSE,
   UINT uiDisabledResID=0,
   UINT uiMenuDisabledResID=0 
);

Parameters

  • [in] uiResID
    The resource ID of the bitmap that refers to the hot toolbar images.

  • [in] uiColdResID
    The resource ID of the bitmap that refers to the cold toolbar images.

  • [in] uiMenuResID
    The resource ID of the bitmap that refers to the regular menu images.

  • [in] bLocked
    TRUE to lock the toolbar; otherwise FALSE.

  • [in] uiDisabledResID
    The resource ID of the bitmap that refers to the disabled toolbar images.

  • [in] uiMenuDisabledResID
    The resource ID of the bitmap that refers to the disabled menu images.

Return Value

Nonzero if the method succeeds; otherwise 0.

Remarks

The CMFCToolBar::LoadToolBarEx method calls this method to load the images that are associated with the toolbar. Override this method to perform custom loading of image resources.

Call the LoadBitmapEx method to load additional images after you create the toolbar.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CMFCToolBar::LoadToolBarEx