Dela via


CMFCRibbonPanel::AddToolBar

Adds a toolbar to the ribbon panel.

CMFCRibbonButtonsGroup* AddToolBar(
    UINT uiToolbarResID,
    UINT uiColdResID = 0,
    UINT uiHotResID = 0,
    UINT uiDisabledResID = 0
);

Parameters

  • [in] uiToolbarResID
    Specifies the resource ID of the toolbar to add.

  • [in] uiColdResID
    Specifies the resource ID of the toolbar's cold images.

  • [in] uiHotResID
    Specifies the resource ID of the toolbar's hot images.

  • [in] uiDisabledResID
    Specifies the resource ID of the toolbar's disabled images.

Return Value

Call this method to add a toolbar to the ribbon panel. The toolbar will be added next to the ribbon element added by the previous call to CMFCRibbonPanel::Add.

Remarks

For more information about toolbars, hot images, cold images, and disabled images, see CMFCToolBar Class.

Requirements

Header: afxRibbonPanel.h

See Also

Reference

CMFCRibbonPanel Class

Hierarchy Chart