CMFCRibbonPanel::SetElementRTC
Adds the ribbon element that is specified by the provided runtime class information to the ribbon panel.
CMFCRibbonBaseElement* SetElementRTC(
int nIndex,
CRuntimeClass* pRTC
);
Parameters
[in] nIndex
Specifies the zero-based index of the ribbon element to add.[in] [out] pRTC
A pointer to the runtime class information for the ribbon element that is added to the ribbon panel.
Return Value
The ribbon element that was created by using the specified runtime class information.
Remarks
If you want to add a custom element (for example, a color button) to the ribbon panel, you must specify the custom element's runtime class information. The ribbon stores this information, creates the custom element, and replaces an existing element that is located (identified by) the specified command ID. The ribbon then returns a pointer to the newly created element.
Requirements
Header: afxRibbonPanel.h