This documentation is archived and is not being maintained.


Adds a menu item to the pop-up menu that is associated with the button.

void AddSubItem(
   CMFCRibbonBaseElement* pSubItem,
   int nIndex=-1 

[in] pSubItem

Specifies a pointer to the new element to add.

[in] nIndex

Specifies the index at which to add the element to the array of menu items of the button; -1 to add the element at the end of the array of menu items.

Header: afxribbonbutton.h