BOOL CBCGPRibbonPanel::Replace | ( | int | nIndex, |
CBCGPBaseRibbonElement * | pElem, | ||
BOOL | bCopyContent = TRUE |
||
) |
Replaces one element with another by index.
The function looks for an element by index and replaces it with pElem.
nIndex | Zero-based index 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. |