分享方式:


CPaneContainerManager 類別

類別 CPaneContainerManager 會管理目前停駐配置的儲存和顯示。 如需更多詳細資料,請參閱 Visual Studio 安裝位置下之 VC\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::D oesAllowDynInsertBefore
CPaneContainerManager::D oesContainFloatingPane
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::P aneFromPoint
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 類別 物件。

類別 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]
[in] ppTargetControlBar

傳回值

備註

CPaneContainerManager::Create

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

參數

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

傳回值

備註

CPaneContainerManager::D oesAllowDynInsertBefore

virtual BOOL DoesAllowDynInsertBefore() const;

傳回值

備註

CPaneContainerManager::D oesContainFloatingPane

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::P aneFromPoint

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

參數

[in]
[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 類別