BCGControlBar Pro for MFC
CBCGPSlider

Detailed Description

The CBCGPSlider class implements the functionality of a splitter that either divides two control bars or divides two groups of control bars or separates a group of control bars from the client area of the main frame window.

CBCGPSlider objects are created automatically by the framework when a control bar is being docked.

There are two types of sliders: default sliders and regular sliders:

  • A default slider is created first in the group of control bars docked at some side of the main frame window. The default slider holds a pointer to the container manager and redirects most operations on a group of control bars (like resizing, or docking another control bar or container) to the container manager. Each docking control bar maintains a pointer to its default slider.
  • Non-default ("regular") sliders just divide two control bars in a container (see CBCGPBarContainer).
See also
CBCGPBarContainerManager, CBCGPBarContainer, CBCGPDockManager
+ Inheritance diagram for CBCGPSlider:

Public Member Functions

 GetControlBarsReturns the list control bars belong to a default slider.
 
 GetSlidersReturns the list control bars belong to a default slider.
 
- Public Member Functions inherited from CBCGPBaseControlBar
 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.
 
 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.
 
 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.
 

Static Public Attributes

 m_nDefaultWidthSpecifies the default width of all sliders in the application.
 
 m_pSliderRTCPointer to runtime class information of CBCGPSlider - derived object.
 

Additional Inherited Members

- Protected Member Functions inherited from CBCGPBaseControlBar
 DoPaintPaints the control bar.