CPaneDivider Class
This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.
The CPaneDivider class divides two panes, divides two groups of panes, or separates a group of panes from the client area of the main frame window.
class CPaneDivider : public CBasePane
Members
Public Constructors
Name |
Description |
---|---|
|
Public Methods
Name |
Description |
---|---|
|
|
|
|
|
|
|
|
(Overrides CBasePane::CalcFixedLayout.) |
|
|
|
(Overrides CBasePane::CreateEx.) |
|
(Overrides CBasePane::DoesAllowDynInsertBefore.) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(Overrides CBasePane::IsAutoHideMode.) |
|
|
|
(Overrides CBasePane::IsHorizontal.) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(Overrides CBasePane::Serialize.) |
|
|
|
|
|
|
|
|
|
|
Public Methods
Name |
Description |
---|---|
Returns the list of panes that reside in the CPaneContainer Class. This method should be called only for default pane dividers. |
|
Returns the list of pane dividers that reside in the CPaneContainer Class. This method should be called only for default pane dividers. |
Data Members
Name |
Description |
---|---|
Specifies the default width in pixels of all pane dividers in the application. |
|
Holds a pointer to the runtime class information about a CPaneDivider-derived object. |
Remarks
The framework creates CPaneDivider objects automatically when a pane is docked.
There are two types of pane dividers:
a default pane divider is created when a group of panes is docked to a side of the main frame window. The default pane divider holds a pointer to the CPaneContainerManager Class and redirects most operations on the group of panes (such as resizing a pane, or docking another pane or container) to the container manager. Each docking pane maintains a pointer to its default pane divider.
A regular pane divider just divides two panes in a container. For more information, see CPaneContainer Class.
Example
The following example demonstrates how to get a CPaneDivider object from a CWorkspaceBar object. This code snippet is part of the MDI Tabs Demo sample.
// CWorkspaceBar m_wndWorkSpace
CPaneDivider* pSlider = m_wndWorkSpace.GetDefaultPaneDivider ();
Inheritance Hierarchy
Requirements
Header: afxPaneDivider.h