CBCGPBaseRibbonElement* CBCGPRibbonPanel::SetElementRTCByID | ( | UINT | uiCmdID, |
CRuntimeClass * | pRTC | ||
) |
Specifies a runtime class of element with given command ID.
Ribbon Control creates and copies elements on the fly. If you need to add a custom element (for example, a color button), you need to specify the custom element's runtime class info. Ribbon Control will store this information, create the custom element and replace an existing element with specified command ID. Then it returns a pointer to the newly created element and you can set it up immediately.
SetElementRTCByID sets runtime class and returns a pointer to the newly created custom button, which can be set up immediately:
uiCmdID | Specifies command ID. |
pRTC | Specifies runtime class information. |