Share via


CMFCRibbonMainPanel::AddToRight

Adds a ribbon element to the right pane of the application button panel.

void AddToRight(
    CMFCRibbonBaseElement* pElem,
    int nWidth = 300 
);

Parameters

  • pElem
    A pointer to a ribbon element to be added to the right side of the main panel.

  • nWidth
    Specifies the width, in pixels, of the right panel.

Remarks

Use this function to add a ribbon element to the right panel. The right panel typically displays the recent files list, but you can add any other ribbon element here.

Requirements

Header: afxRibbonMainPanel.h

See Also

Reference

CMFCRibbonMainPanel Class

Hierarchy Chart