BCGControlBar Pro for MFC
CBCGPDockManager

Detailed Description

The CBCGPDockManager class implements the core functionality that controls docking layout within the related main frame window.

The instance of this class is created and initialized automatically, because it's embedded into the main frame window object (m_dockManager).

The docking manager object holds a list of all control bars that are taking part in the docking layout, as well as a list of all mini-frame windows that belong to the main frame window.

The CBCGPDockManager class implements some services that can be used to find a control bar or a mini-frame window, but usually you don't need to call these services directly, because they're wrapped in the main frame window object.

CBCGPDockManager supports three docking modes: standard, immediate and smart. You can change these modes on the fly using SetDockMode().

See also
CBCGPFrameWnd, CBCGPDockingControlBar, CBCGPMiniFrameWnd

Inherits CObject.

Public Member Functions

 AddControlBarRegisters a control bar with docking manager.
 
 AdjustDockingLayoutRecalculates and adjusts layout of all control bars within a frame window.
 
 ControlBarFromPointReturns a pointer to a control bar that contains the given point.
 
 ControlBarFromPointReturns a pointer to a control bar that contains the given point.
 
 DisableRestoreDockStateEnables or disables loading of docking layout from the registry.
 
 FindBarByIDFinds a control bar by the specified control ID.
 
 GetControlBarListReturns a list of control bars that belong to the docking manager, including all floating control bars.
 
 GetEnabledAutoHideAlignmentReturns the enabled alignment for the autohide control bars.
 
 IsOLEContainerModeTells whether the docking manager is working in OLE container mode.
 

Static Public Member Functions

 EnableDockBarMenuEnables an additional button opening a popup menu to be displayed on captions of all docking bars.
 
 GetDockModeReturns current docking mode.
 
 GetSmartDockingParamsReturns a structure defining "smart docking" parameters.
 
 IsDockBarMenuTells whether an additional button opening a popup menu is displayed on captions of all docking bars.
 
 SetDockModeSets new docking mode.
 
 SetSmartDockingParamsSets customization parameters for "smart docking" appearance.
 

Static Public Attributes

 g_nTimeOutBeforeDockingBarDock 
 
 g_nTimeOutBeforeToolBarDock 
 
 m_bHideDockingBarsInContainerModeTells the docking manager to hide control bars in OLE container mode.
 
 m_nDockSencitivitySpecifies the docking sensitivity.
 

Static Protected Attributes

 m_dockModeGlobalGlobal docking mode.