Compartir a través de


CMFCRibbonButton::AddSubItem

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

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

Parameters

  • [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.

Requirements

Header: afxribbonbutton.h

See Also

Reference

CMFCRibbonButton Class

Hierarchy Chart