This documentation is archived and is not being maintained.


Adds the current ribbon element to the specified array if the current ribbon element contains the specified command ID.

virtual void GetElementsByID(
   UINT uiCmdID,
   CArray<CMFCRibbonBaseElement*, CMFCRibbonBaseElement*>& arElements

[in] uiCmdID

Command ID of a ribbon element.

[in] arElements

An array of ribbon elements.

Header: afxbaseribbonelement.h