BCGControlBar Pro for MFC
BOOL CBCGPRibbonBar::ReplaceRibbonElementByID ( UINT  uiCmdID,
CBCGPBaseRibbonElement newElement,
BOOL  bCopyContent = TRUE,
BOOL  bIncludeHidden = FALSE,
BOOL  bIncludeTabElements = FALSE 
) const

Replaces ribbon controls that have a specific identifier with a new control.

uiCmdIDSpecifies Ribbon control id.
newElementThe new control.
bCopyContentSpecifies whether Ribbon control content should be copied to the new control.
bIncludeHiddenSpecifies whether the serach scop should include hidden controls.
bIncludeTabElementsSpecifies whether the serach scop should include controls located on the tabs row.