Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

To set a certain fixed docking bar location, just call your CMainFrame::DockControlBar() method with the appropriate parameter values. The following example arranges two toolbars into one horizontal image at the bottom of a frame window:

DockControlBar( &m_wndToolBar1, AFX_IDW_DOCKBAR_BOTTOM );
CRect wrAlreadyDockedToolBar;
m_wndToolBar1.GetWindowRect( &wrAlreadyDockedToolBar );
wrAlreadyDockedToolBar.OffsetRect( 0, 1 );
DockControlBar( &m_wndToolBar2, AFX_IDW_DOCKBAR_BOTTOM,&wrAlreadyDockedToolBar);