| BOOL CBCGPRibbonPanel::ReplaceByID | ( | UINT | uiCmdID, | 
| CBCGPBaseRibbonElement * | pElem, | ||
| BOOL | bCopyContent = TRUE | ||
| ) | 
Replaces one element with another by command ID.
The function looks for an element by command ID and replaces it with pElem.
| uiCmdID | A command ID of the element to be replaced. | 
| pElem | A valid pointer to element, which will replace the original element. | 
| bCopyContent | If TRUE, the content of the previous element will be copied to the new. |