Condividi tramite


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

CPaneDivider::CPaneDivider

 

Public Methods

Name

Description

CPaneDivider::AddPaneContainer

 

CPaneDivider::AddPane

 

CPaneDivider::AddRecentPane

 

CPaneDivider::CalcExpectedDockedRect

 

CPaneDivider::CalcFixedLayout

  (Overrides CBasePane::CalcFixedLayout.)

CPaneDivider::CheckVisibility

 

CPaneDivider::CreateEx

  (Overrides CBasePane::CreateEx.)

CPaneDivider::DoesAllowDynInsertBefore

  (Overrides CBasePane::DoesAllowDynInsertBefore.)

CPaneDivider::DoesContainFloatingPane

 

CPaneDivider::FindPaneContainer

 

CPaneDivider::FindTabbedPane

 

CPaneDivider::GetDefaultWidth

 

CPaneDivider::GetFirstPane

 

CPaneDivider::GetPaneDividerStyle

 

CPaneDivider::GetRootContainerRect

 

CPaneDivider::GetWidth

 

CPaneDivider::Init

 

CPaneDivider::InsertPane

 

CPaneDivider::IsAutoHideMode

  (Overrides CBasePane::IsAutoHideMode.)

CPaneDivider::IsDefault

 

CPaneDivider::IsHorizontal

  (Overrides CBasePane::IsHorizontal.)

CPaneDivider::Move

 

CPaneDivider::NotifyAboutRelease

 

CPaneDivider::OnShowPane

 

CPaneDivider::ReleaseEmptyPaneContainers

 

CPaneDivider::RemovePane

 

CPaneDivider::ReplacePane

 

CPaneDivider::RepositionPanes

 

CPaneDivider::Serialize

  (Overrides CBasePane::Serialize.)

CPaneDivider::SetAutoHideMode

 

CPaneDivider::SetPaneContainerManager

 

CPaneDivider::ShowWindow

 

CPaneDivider::StoreRecentDockSiteInfo

 

CPaneDivider::StoreRecentTabRelatedInfo

 

Public Methods

Name

Description

CPaneDivider::GetPanes

Returns the list of panes that reside in the CPaneContainer Class. This method should be called only for default pane dividers.

CPaneDivider::GetPaneDividers

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

CPaneDivider::m_nDefaultWidth

Specifies the default width in pixels of all pane dividers in the application.

CPaneDivider::m_pSliderRTC

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

CObject   CCmdTarget      CWnd

         CBasePane            CPaneDivider

Requirements

Header: afxPaneDivider.h

See Also

Reference

Hierarchy Chart

CPaneContainerManager Class

CPaneContainer Class

CDockingManager Class

CBasePane Class

Other Resources

MFC Classes