Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Replaces one element with another based on their index value.
BOOL Replace(
int nIndex,
CMFCRibbonBaseElement* pElem
);
Parameters
[in] nIndex
Specifies the zero-based index of the element to replace.[in] [out] pElem
A valid pointer to the element that replaces the original element.
Return Value
TRUE if the original ribbon element has been replaced successfully by the new ribbon element; FALSE if the ribbon element was not replaced or if there is no element at the specified index.
Remarks
To replace a ribbon element by command ID, call CMFCRibbonPanel::ReplaceByID.
Requirements
Header: afxRibbonPanel.h