BCGControlBar Pro for MFC
BOOL CBCGPFrameWnd::EnableDocking ( DWORD  dwDockStyle)

Enables docking of the toolbars that belongs the frame window.

Call this function to enable docking of the toolbars and docking control bars that belong to the CBCGPFrameWnd object.

When you call this method the framework automatically creates several dock bars according to the enabled alignment specified by dwDockStyle.

Parameters
dwDockStyleSpecifies the enabled sides of the main frame window (use CBRS_ALIGN_ flags).