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

Usually all the control bars (but the status bar) in any docking site are enabled to be re-dockable. This feature is turned on by performing the following two steps. First, call the static CExtControlBar::FrameEnableDocking( pDockSite ) method. Second, invoke the CExtControlBar::EnableDocking() method of the bar.

If a bar is not re-dockable, its parent window is the docking site. In case of a dockable bar, the parent window is always a docking bar window (even for a floating palette).

IMPORTANT: CExtControlBar::FrameEnableDocking( pDockSite ) should be used instead of CFrameWnd::EnableDocking().