BCGControlBar Pro for MFC
BOOL CBCGPFrameWnd::InsertControlBar ( CBCGPBaseControlBar pControlBar,
CBCGPBaseControlBar pTarget,
BOOL  bAfter = TRUE 
)

Registers a control bar with the docking manager inserting the control bar after the specifies control bar.

Returns
Nonzero if the control bar was registered, it's 0 if the bar has already been registered with the docking manager.

Each control bar must be registered with the docking manager to take a part in the docking layout. Use this function to tell the docking manager about a control bar specifies by pControlBar. From this moment the docking manager will be trying to align this bar according to the bar's alignment and position in the internal docking manager's list.

Parameters
pControlBarPoints to a control bar to be inserted.
pTargetPoints to a control bar to insert before or after.
bAfterTRUE - pControlBar will be inserted after pTarget, FALSE - before.