CPaneContainerManager 类

CPaneContainerManager 类管理当前停靠布局的存储和显示。 有关详细信息,请参阅所安装的 Visual Studio 的 C\atlmfc\src\mfc 文件夹中的源代码。

语法

class CPaneContainerManager : public CObject

成员

公共方法

名称 描述
CPaneContainerManager::AddPane
CPaneContainerManager::AddPaneContainerManager
CPaneContainerManager::AddPaneContainerManagerToDockablePane
CPaneContainerManager::AddPanesToList
CPaneContainerManager::AddPaneToList
CPaneContainerManager::AddPaneToRecentPaneContainer
CPaneContainerManager::CalcRects
CPaneContainerManager::CanBeAttached
CPaneContainerManager::CheckAndRemoveNonValidPane
CPaneContainerManager::CheckForMiniFrameAndCaption
CPaneContainerManager::Create
CPaneContainerManager::DoesAllowDynInsertBefore
CPaneContainerManager::DoesContainFloatingPane
CPaneContainerManager::EnableGrippers
CPaneContainerManager::FindPaneContainer
CPaneContainerManager::FindTabbedPane
CPaneContainerManager::GetAvailableSpace
CPaneContainerManager::GetDefaultPaneDivider
CPaneContainerManager::GetDockSiteFrameWnd
CPaneContainerManager::GetFirstPane
CPaneContainerManager::GetFirstVisiblePane
CPaneContainerManager::GetMinMaxOffset
CPaneContainerManager::GetMinSize
CPaneContainerManager::GetNodeCount
CPaneContainerManager::GetPaneContainerRTC
CPaneContainerManager::GetPaneCount
CPaneContainerManager::GetTotalRefCount
CPaneContainerManager::GetVisiblePaneCount
CPaneContainerManager::GetWindowRect
CPaneContainerManager::HideAll
CPaneContainerManager::InsertPane
CPaneContainerManager::IsAutoHideMode
CPaneContainerManager::IsEmpty
CPaneContainerManager::IsRootPaneContainerVisible
CPaneContainerManager::NotifyPaneDivider
CPaneContainerManager::OnPaneDividerMove
CPaneContainerManager::OnShowPane
CPaneContainerManager::PaneFromPoint
CPaneContainerManager::ReleaseEmptyPaneContainers
CPaneContainerManager::RemoveAllPanesAndPaneDividers
CPaneContainerManager::RemoveNonValidPanes
CPaneContainerManager::RemovePaneDivider
CPaneContainerManager::RemovePaneFromPaneContainer
CPaneContainerManager::ReplacePane
CPaneContainerManager::ResizePaneContainers
CPaneContainerManager::Serialize 从存档读取该对象或将该对象写入存档。 (重写 CObject::Serialize。)
CPaneContainerManager::SetDefaultPaneDividerForPanes
CPaneContainerManager::SetPaneContainerRTC
CPaneContainerManager::SetResizeMode
CPaneContainerManager::StoreRecentDockSiteInfo

备注

该框架会自动创建 CPaneContainerManager 对象的实例并将其嵌入到 CPaneDivider Class 对象或 CMultiPaneFrameWnd Class 对象中。

CPaneContainerManager 类存储指向从 CPaneContainer 对象构建的二叉树根的指针。

示例

以下示例演示如何获取对 CPaneContainerManager 对象的引用。 此代码段是设置窗格大小示例的一部分。

// CMultiPaneFrameWnd* pParentMiniFrame
CPaneContainerManager &manager = pParentMiniFrame->GetPaneContainerManager();

继承层次结构

CObject

CPaneContainerManager

要求

标头:afxpanecontainermanager.h

CPaneContainerManager::AddPane

virtual void AddPane(CDockablePane* pControlBarToAdd);

参数

[in] pControlBarToAdd

注解

CPaneContainerManager::AddPaneContainerManager

virtual BOOL AddPaneContainerManager(
    CPaneContainerManager& srcManager,
    BOOL bOuterEdge);

virtual BOOL AddPaneContainerManager(
    CDockablePane* pTargetControlBar,
    DWORD dwAlignment,
    CPaneContainerManager& srcManager,
    BOOL bCopy);

参数

[in] srcManager
[in] bOuterEdge
[in] pTargetControlBar
[in] dwAlignment
[in] bCopy

返回值

注解

CPaneContainerManager::AddPaneContainerManagerToDockablePane

virtual BOOL AddPaneContainerManagerToDockablePane(
    CDockablePane* pTargetControlBar,
    CPaneContainerManager& srcManager);

参数

[in] pTargetControlBar
[in] srcManager

返回值

备注

CPaneContainerManager::AddPanesToList

void AddPanesToList(
    CObList* plstControlBars,
    CObList* plstSliders);

参数

[in] plstControlBars
[in] plstSliders

备注

CPaneContainerManager::AddPaneToList

void AddPaneToList(CDockablePane* pControlBarToAdd);

参数

[in] pControlBarToAdd

注解

CPaneContainerManager::AddPaneToRecentPaneContainer

virtual CDockablePane* AddPaneToRecentPaneContainer(
    CDockablePane* pBarToAdd,
    CPaneContainer* pRecentContainer);

参数

[in] pBarToAdd
[in] pRecentContainer

返回值

注解

CPaneContainerManager::CalcRects

void CalcRects(
    CRect& rectOriginal,
    CRect& rectInserted,
    CRect& rectSlider,
    DWORD& dwSliderStyle,
    DWORD dwAlignment,
    CSize sizeMinOriginal,
    CSize sizeMinInserted);

参数

[in] rectOriginal
[in] rectInserted
[in] rectSlider
[in] dwSliderStyle
[in] dwAlignment
[in] sizeMinOriginal
[in] sizeMinInserted

备注

CPaneContainerManager::CanBeAttached

virtual BOOL CanBeAttached() const;

返回值

备注

CPaneContainerManager::CheckAndRemoveNonValidPane

BOOL CheckAndRemoveNonValidPane(CWnd* pWnd);

参数

[in] pWnd

返回值

备注

CPaneContainerManager::CheckForMiniFrameAndCaption

virtual BOOL CheckForMiniFrameAndCaption(
    CPoint point,
    CDockablePane** ppTargetControlBar);

参数

[in] point
[in] ppTargetControlBar

返回值

备注

CPaneContainerManager::Create

virtual BOOL Create(
    CWnd* pParentWnd,
    CPaneDivider* pDefaultSlider,
    CRuntimeClass* pContainerRTC = NULL);

参数

[in] pParentWnd
[in] pDefaultSlider
[in] pContainerRTC

返回值

注解

CPaneContainerManager::DoesAllowDynInsertBefore

virtual BOOL DoesAllowDynInsertBefore() const;

返回值

备注

CPaneContainerManager::DoesContainFloatingPane

virtual BOOL DoesContainFloatingPane();

返回值

备注

CPaneContainerManager::EnableGrippers

virtual void EnableGrippers(BOOL bEnable);

参数

[in] bEnable

注解

CPaneContainerManager::FindPaneContainer

virtual CPaneContainer* FindPaneContainer(
    CDockablePane* pBar,
    BOOL& bLeftBar);

参数

[in] pBar
[in] bLeftBar

返回值

备注

CPaneContainerManager::FindTabbedPane

CDockablePane* FindTabbedPane(UINT nID);

参数

[in] nID

返回值

备注

CPaneContainerManager::GetAvailableSpace

virtual void GetAvailableSpace(CRect& rect) const;

参数

[in] rect

备注

CPaneContainerManager::GetDefaultPaneDivider

CPaneDivider* GetDefaultPaneDivider() const;

返回值

备注

CPaneContainerManager::GetDockSiteFrameWnd

virtual CWnd* GetDockSiteFrameWnd();

返回值

备注

CPaneContainerManager::GetFirstPane

virtual CBasePane* GetFirstPane() const;

返回值

备注

CPaneContainerManager::GetFirstVisiblePane

virtual CWnd* GetFirstVisiblePane() const;

返回值

注解

CPaneContainerManager::GetMinMaxOffset

virtual void GetMinMaxOffset(
    CPaneDivider* pSlider,
    int& nMinOffset,
    int& nMaxOffset,
    int& nStep);

参数

[in] pSlider
[in] nMinOffset
[in] nMaxOffset
[in] nStep

备注

CPaneContainerManager::GetMinSize

virtual void GetMinSize(CSize& size);

参数

[in] size

备注

CPaneContainerManager::GetNodeCount

int GetNodeCount() const;

返回值

注解

CPaneContainerManager::GetPaneContainerRTC

CRuntimeClass* GetPaneContainerRTC() const;

返回值

注解

CPaneContainerManager::GetPaneCount

int GetPaneCount() const;

返回值

备注

CPaneContainerManager::GetTotalRefCount

int GetTotalRefCount() const;

返回值

备注

CPaneContainerManager::GetVisiblePaneCount

virtual int GetVisiblePaneCount() const;

返回值

备注

CPaneContainerManager::GetWindowRect

virtual void GetWindowRect(CRect& rect) const;

参数

[in] rect

备注

CPaneContainerManager::HideAll

virtual void HideAll();

备注

CPaneContainerManager::InsertPane

virtual BOOL InsertPane(
    CDockablePane* pControlBarToInsert,
    CDockablePane* pTargetControlBar,
    DWORD dwAlignment,
    LPCRECT lpRect = NULL,
    AFX_DOCK_METHOD dockMethod = DM_UNKNOWN);

参数

[in] pControlBarToInsert
[in] pTargetControlBar
[in] dwAlignment
[in] lpRect
[in] dockMethod

返回值

注解

CPaneContainerManager::IsAutoHideMode

BOOL IsAutoHideMode() const;

返回值

注解

CPaneContainerManager::IsEmpty

BOOL IsEmpty() const;

返回值

备注

CPaneContainerManager::IsRootPaneContainerVisible

virtual BOOL IsRootPaneContainerVisible() const;

返回值

备注

CPaneContainerManager::NotifyPaneDivider

void NotifyPaneDivider();

注解

CPaneContainerManager::OnPaneDividerMove

virtual int OnPaneDividerMove(
    CPaneDivider* pSlider,
    UINT uFlags,
    int nOffset,
    HDWP& hdwp);

参数

[in] pSlider
[in] uFlags
[in] nOffset
[in] hdwp

返回值

注解

CPaneContainerManager::OnShowPane

virtual BOOL OnShowPane(
    CDockablePane* pBar,
    BOOL bShow);

参数

[in] pBar
[in] bShow

返回值

备注

CPaneContainerManager::PaneFromPoint

virtual CDockablePane* PaneFromPoint(
    CPoint point,
    int nSensitivity,
    BOOL bExactBar,
    BOOL& bIsTabArea,
    BOOL& bCaption);

参数

[in] point
[in] nSensitivity
[in] bExactBar
[in] bIsTabArea
[in] bCaption

返回值

注解

CPaneContainerManager::ReleaseEmptyPaneContainers

void ReleaseEmptyPaneContainers();

备注

CPaneContainerManager::RemoveAllPanesAndPaneDividers

void RemoveAllPanesAndPaneDividers();

注解

CPaneContainerManager::RemoveNonValidPanes

void RemoveNonValidPanes();

备注

CPaneContainerManager::RemovePaneDivider

virtual void RemovePaneDivider(CPaneDivider* pSlider);

参数

[in] pSlider

备注

CPaneContainerManager::RemovePaneFromPaneContainer

virtual BOOL RemovePaneFromPaneContainer(CDockablePane* pControlBar);

参数

[in] pControlBar

返回值

备注

CPaneContainerManager::ReplacePane

virtual BOOL ReplacePane(
    CDockablePane* pBarOld,
    CDockablePane* pBarNew);

参数

[in] pBarOld
[in] pBarNew

返回值

注解

CPaneContainerManager::ResizePaneContainers

virtual void ResizePaneContainers(
    UINT nSide,
    BOOL bExpand,
    int nOffset,
    HDWP& hdwp);

virtual void ResizePaneContainers(
    CRect rect,
    HDWP& hdwp);

参数

[in] nSide
[in] bExpand
[in] nOffset
[in] hdwp
[in] rect

注解

CPaneContainerManager::Serialize

void Serialize(CArchive& ar);

参数

[in] ar

备注

CPaneContainerManager::SetDefaultPaneDividerForPanes

void SetDefaultPaneDividerForPanes(CPaneDivider* pSlider);

参数

[in] pSlider

注解

CPaneContainerManager::SetPaneContainerRTC

void SetPaneContainerRTC(CRuntimeClass* pContainerRTC);

参数

[in] pContainerRTC

注解

CPaneContainerManager::SetResizeMode

virtual void SetResizeMode(BOOL bResize);

参数

[in] bResize

备注

CPaneContainerManager::StoreRecentDockSiteInfo

virtual void StoreRecentDockSiteInfo(CDockablePane* pBar);

参数

[in] pBar

注解

另请参阅

层次结构图

CObject 类
CPaneContainer 类
CPaneDivider 类