BCGControlBar Pro for MFC
CBCGPBaseControlBar

Detailed Description

All control bar classes in the library derive from this class. If you want to create your own control bar class, and you want this control bar to take part in the docking layout, you have to derive this class from CBCGPBaseControlBar or from CBCGPControlBar.

+ Inheritance diagram for CBCGPBaseControlBar:

Public Member Functions

 AddControlBarAdds a control bar to docking manager.
 
 AdjustDockingLayoutRedirects a call to docking manager to adjust docking layout.
 
 AdjustLayoutCalled by the framework when a control bar should adjust its internal layout according to a new size or position.
 
 CanAcceptBarDetermines whether another control bar can be docked to this control bar.
 
 CanAutoHideDetermines whether the control bar can be switched to autohide mode.
 
 CanBeAttachedCalled by the framework to determine if the control bar can be docked to another control bar or frame window.
 
 CanBeClosedDetermines whether the control bar may be hidden.
 
 CanBeDockedDetermines whether this control bar can be docked to another control bar.
 
 CanBeResizedDetermines whether this control bar can be resized.
 
 CanFloatDetermines whether the control bar can float.
 
 CanFocusSpecifies whether a control bar can receive focus.
 
 CreateDefaultMiniframeCreates a mini-frame window if can float.
 
 CreateExCreates a Windows control.
 
 DockControlBarDocks control bar to another control bar or frame window.
 
 DoesAllowDynInsertBeforeDetermines whether it is possible to dynamically insert a control bar before this control bar.
 
 EnableDockingEnables docking to the main frame.
 
 EnableGripperEnables/disables the control caption (gripper).
 
 FloatControlBarFloats the control bar.
 
 GetBarIconReturns control bar icon.
 
 GetBarStyleReturns the control bar style.
 
 GetBCGStyleReturns the library specific control bar styles.
 
 GetCaptionHeightReturns the gripper (caption) height.
 
 GetCurrentAlignmentReturns the current control bar alignment.
 
 GetDockModeReturns the current dock mode for the control bar.
 
 GetDockRowReturns a pointer to a dock bar row.
 
 GetDockSiteReturns a pointer to dock site.
 
 GetEnabledAlignmentReturns the enabled alignment.
 
 GetParentMiniFrameReturns a pointer to the parent mini-frame window.
 
 GetParentTabWndRetrieves a pointer to the parent tabbed window.
 
 HideInPrintPreviewModeTells the framework whether control bar should be hidden in print preview mode.
 
 IsDockedDetermines whether the control bar is docked or not.
 
 IsHorizontalDetermines whether the control bar is docked horizontally.
 
 IsMDITabbedTells whether control bar is placed on MDI child window as tabbed document.
 
 IsResizableDetermines whether the control bar can be resized.
 
 IsTabbedDetermines whether the control bar is inserted in a tab of a tabbed window.
 
 IsVisibleDetermines whether a control bar is visible or not.
 
 LoadStateLoads the control bar state from the registry.
 
 OnAfterChangeParentCalled by the framework when the control bar's parent has been changed.
 
 OnBeforeChangeParentCalled by the framework just before the parent window is changed.
 
 OnControlBarContextMenuCalled by the framework when it needs to build a menu with the list of control bars.
 
 OnRemoveFromMiniFrameCalled by the framework when a control bar is being removed from its parent mini-frame window.
 
 SaveStateSaves state to the Windows registry.
 
 SetBarAlignmentSets the current alignment for a control bar.
 
 SetBarStyleSets a control bar style
 
 SetDockModeSets a new docking method for a control bar.
 
 ShowControlBarShows or hides a control bar.
 
 UnDockControlBarRemoves control bar from dock bar or from default slider or from mini-frame window.
 

Protected Member Functions

 DoPaintPaints the control bar.