Bagikan melalui


CMFCToolBar::AddToolBarForImageCollection

Adds images from the user interface resources to the collection of images in the application.

static BOOL __stdcall AddToolBarForImageCollection(
   UINT uiResID,
   UINT uiBmpResID=0,
   UINT uiColdResID=0,
   UINT uiMenuResID=0,
   UINT uiDisabledResID=0,
   UINT uiMenuDisabledResID=0 
);

Parameters

  • [in] uiResID
    Resource ID of a toolbar with images to load.

  • [in] uiBmpResID
    Resource ID of a bitmap with toolbar images.

  • [in] uiColdResID
    Resource ID of a bitmap with "cold" toolbar images.

  • [in] uiMenuResID
    Resource ID of a bitmap with menu images.

  • [in] uiDisabledResID
    Resource ID of a bitmap with disabled toolbar images.

  • [in] uiMenuDisabledResID
    Resource ID of a bitmap with disabled menu images.

Return Value

TRUE if the method succeeds; FALSE if uiResID or uiBmpResID do not specify valid resources, or another error occurs.

Remarks

Call this method to load a bitmap with toolbar images and add it to the collection of toolbar images. This method creates a temporary toolbar object and calls CMFCToolBar::LoadToolBar.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CMFCToolBar::LoadToolBar