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.
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.
pControlBar | Points to a control bar to be inserted. |
pTarget | Points to a control bar to insert before or after. |
bAfter | TRUE - pControlBar will be inserted after pTarget, FALSE - before. |