CMFCRibbonBar::GetElementsByID

Retrieves an array of pointers to all ribbon elements that have a specific command ID.

void GetElementsByID(
   UINT uiCmdID,
   CArray<CMFCRibbonBaseElement* ,CMFCRibbonBaseElement*>& arButtons 
);

Parameters

  • [in] uiCmdID
    Command ID of a ribbon element.

  • [out] arButtons
    An array of pointers to ribbon elements.

Remarks

Multiple ribbon elements can have the same command ID because some ribbon elements can be copied to the quick access toolbar.

Requirements

Header: afxribbonbar.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCRibbonBar Class

Change History

Date

History

Reason

October 2008

Updated whole topic.

Information enhancement.