Share via


CMFCRibbonButton::FindSubItemIndexByID

Returns the index of a pop-up menu item that is associated with the specified command ID.

int FindSubItemIndexByID(
   UINT uiID 
) const;

Parameters

  • [in] uiID
    Specifies the command ID of the pop-up menu item.

Return Value

The zero-based index of the sub-item that is associated with the uiID. -1 if there is no such sub-item.

Requirements

Header: afxribbonbutton.h

See Also

Reference

CMFCRibbonButton Class

Hierarchy Chart