BCGControlBar Pro for MFC
virtual void CBCGPBaseControlBar::EnableDocking ( DWORD  dwAlignment)

Enables docking to the main frame.

Call this function to enable docking alignment to the main frame. You can pass here a combination of CBRS_ALIGN_ flags (see in MFC documentation CControlBar::EnableDocking for more info).

EnableDocking sets the internal flag CBCGPBaseControlBar::m_dwEnabledAlignment and the framework checks this flag when a control bar is being docked.

You can call (as the framework does) GetEnabledAlignment() to determine what is the currently enabled docking alignment for a control bar.

dwAlignmentSpecifies the docking alignment to enable.