Condividi tramite


CPaneContainer Class

The CPaneContainer class is a basic component of the docking model implemented by MFC. An object of this class stores pointers to two docking panes or to two instances of CPaneContainer. It also stores a pointer to the divider that separates the panes (or the containers). By nesting containers inside containers, the framework can build a binary tree that represents complex docking layouts. The root of the binary tree is stored in a CPaneContainerManager object.

class CPaneContainer : public CObject  

Members

Public Constructors

Name

Description

CPaneContainer::CPaneContainer

Default constructor.

Public Methods

Name

Description

CPaneContainer::AddPane

 

CPaneContainer::AddRef

 

CPaneContainer::AddSubPaneContainer

 

CPaneContainer::CalcAvailablePaneSpace

 

CPaneContainer::CalcAvailableSpace

 

CPaneContainer::CalculateRecentSize

 

CPaneContainer::CheckPaneDividerVisibility

 

CPaneContainer::Copy

 

CPaneContainer::DeletePane

 

CPaneContainer::FindSubPaneContainer

 

CPaneContainer::FindTabbedPane

 

CPaneContainer::GetAssociatedSiblingPaneIDs

 

CPaneContainer::GetLeftPane

 

CPaneContainer::GetLeftPaneContainer

 

CPaneContainer::GetMinSize

 

CPaneContainer::GetMinSizeLeft

 

CPaneContainer::GetMinSizeRight

 

CPaneContainer::GetNodeCount

 

CPaneContainer::GetPaneDivider

 

CPaneContainer::GetParentPaneContainer

 

CPaneContainer::GetRecentPaneDividerRect

 

CPaneContainer::GetRecentPaneDividerStyle

 

CPaneContainer::GetRecentPercent

 

CPaneContainer::GetRefCount

 

CPaneContainer::GetResizeStep

 

CPaneContainer::GetRightPane

 

CPaneContainer::GetRightPaneContainer

 

CPaneContainer::GetTotalReferenceCount

 

CPaneContainer::GetWindowRect

 

CPaneContainer::IsDisposed

 

CPaneContainer::IsEmpty

 

CPaneContainer::IsLeftPane

 

CPaneContainer::IsLeftPaneContainer

 

CPaneContainer::IsLeftPartEmpty

 

CPaneContainer::IsRightPartEmpty

 

CPaneContainer::IsVisible

 

CPaneContainer::Move

 

CPaneContainer::OnDeleteHidePane

 

CPaneContainer::OnMoveInternalPaneDivider

 

CPaneContainer::OnShowPane

 

CPaneContainer::Release

 

CPaneContainer::ReleaseEmptyPaneContainer

 

CPaneContainer::RemoveNonValidPanes

 

CPaneContainer::RemovePane

 

CPaneContainer::Resize

 

CPaneContainer::ResizePane

 

CPaneContainer::ResizePartOfPaneContainer

 

CPaneContainer::Serialize

Reads or writes this object from or to an archive. (Overrides CObject::Serialize.)

CPaneContainer::SetPane

 

CPaneContainer::SetPaneContainer

 

CPaneContainer::SetPaneDivider

 

CPaneContainer::SetParentPaneContainer

 

CPaneContainer::SetRecentPercent

 

CPaneContainer::SetUpByID

 

CPaneContainer::StoreRecentDockSiteInfo

 

CPaneContainer::StretchPaneContainer

 

Remarks

CPaneContainer objects are created automatically by the framework.

Example

The following example demonstrates how to construct an instance of the CPaneContainer class. This code snippet is part of the Set Pane Size sample.

  CPaneDialog     m_wndDlgBar;


...


    CPaneDivider* pDefaultPaneDivider = m_wndDlgBar.GetDefaultPaneDivider ();
    if (pDefaultPaneDivider == NULL)
    {
        AfxMessageBox (_T ("The DialogBar is not docked."));
        return;
    }

    BOOL bLeftBar = FALSE;
    CPaneContainer* pContainer = pDefaultPaneDivider->FindPaneContainer (&m_wndDlgBar, bLeftBar);    

Inheritance Hierarchy

CObject

   CPaneContainer

Requirements

Header: afxpanecontainer.h

See Also

Reference

Hierarchy Chart

CObject Class

CPaneContainerManager Class

Other Resources

MFC Classes