Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CMFCRibbonBar::GetElementsByID
Collapse the table of content
Expand the table of content

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 
);

[in] uiCmdID

Command ID of a ribbon element.

[out] arButtons

An array of pointers to ribbon elements.

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

Header: afxribbonbar.h

Show:
© 2015 Microsoft