Compartilhar via


Classe CPaneContainerManager

A classe CPaneContainerManager gerencia o armazenamento e a exibição do layout de encaixe atual. Para obter mais detalhes, confira o código-fonte localizado na pasta VC\atlmfc\src\mfc de sua instalação do Visual Studio.

Sintaxe

class CPaneContainerManager : public CObject

Membros

Métodos públicos

Nome Descrição
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 Lê ou grava esse objeto de ou em uma camada de arquivos. (Substitui CObject::Serialize.)
CPaneContainerManager::SetDefaultPaneDividerForPanes
CPaneContainerManager::SetPaneContainerRTC
CPaneContainerManager::SetResizeMode
CPaneContainerManager::StoreRecentDockSiteInfo

Comentários

A estrutura cria automaticamente instâncias de objetos CPaneContainerManager e as insere em objetos CPaneDivider Class ou em objetos CMultiPaneFrameWnd Class.

A classe CPaneContainerManager armazena um ponteiro para a raiz de uma árvore binária criada a partir de objetos CPaneContainer.

Exemplo

O exemplo a seguir demonstra como obter uma referência para um objeto CPaneContainerManager. Esse snippet de código faz parte do exemplo Definir Tamanho do Painel.

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

Hierarquia de herança

CObject

CPaneContainerManager

Requisitos

Cabeçalho: afxpanecontainermanager.h

CPaneContainerManager::AddPane

virtual void AddPane(CDockablePane* pControlBarToAdd);

Parâmetros

[in] pControlBarToAdd

Comentários

CPaneContainerManager::AddPaneContainerManager

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

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

Parâmetros

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

Valor de retorno

Comentários

CPaneContainerManager::AddPaneContainerManagerToDockablePane

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

Parâmetros

[in] pTargetControlBar
[in] srcManager

Valor de retorno

Comentários

CPaneContainerManager::AddPanesToList

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

Parâmetros

[in] plstControlBars
[in] plstSliders

Comentários

CPaneContainerManager::AddPaneToList

void AddPaneToList(CDockablePane* pControlBarToAdd);

Parâmetros

[in] pControlBarToAdd

Comentários

CPaneContainerManager::AddPaneToRecentPaneContainer

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

Parâmetros

[in] pBarToAdd
[in] pRecentContainer

Valor de retorno

Comentários

CPaneContainerManager::CalcRects

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

Parâmetros

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

Comentários

CPaneContainerManager::CanBeAttached

virtual BOOL CanBeAttached() const;

Valor de retorno

Comentários

CPaneContainerManager::CheckAndRemoveNonValidPane

BOOL CheckAndRemoveNonValidPane(CWnd* pWnd);

Parâmetros

[in] pWnd

Valor de retorno

Comentários

CPaneContainerManager::CheckForMiniFrameAndCaption

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

Parâmetros

[in] point
[in] ppTargetControlBar

Valor de retorno

Comentários

CPaneContainerManager::Create

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

Parâmetros

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

Valor de retorno

Comentários

CPaneContainerManager::DoesAllowDynInsertBefore

virtual BOOL DoesAllowDynInsertBefore() const;

Valor de retorno

Comentários

CPaneContainerManager::DoesContainFloatingPane

virtual BOOL DoesContainFloatingPane();

Valor de retorno

Comentários

CPaneContainerManager::EnableGrippers

virtual void EnableGrippers(BOOL bEnable);

Parâmetros

[in] bEnable

Comentários

CPaneContainerManager::FindPaneContainer

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

Parâmetros

[in] pBar
[in] bLeftBar

Valor de retorno

Comentários

CPaneContainerManager::FindTabbedPane

CDockablePane* FindTabbedPane(UINT nID);

Parâmetros

[in] nID

Valor de retorno

Comentários

CPaneContainerManager::GetAvailableSpace

virtual void GetAvailableSpace(CRect& rect) const;

Parâmetros

[in] rect

Comentários

CPaneContainerManager::GetDefaultPaneDivider

CPaneDivider* GetDefaultPaneDivider() const;

Valor de retorno

Comentários

CPaneContainerManager::GetDockSiteFrameWnd

virtual CWnd* GetDockSiteFrameWnd();

Valor de retorno

Comentários

CPaneContainerManager::GetFirstPane

virtual CBasePane* GetFirstPane() const;

Valor de retorno

Comentários

CPaneContainerManager::GetFirstVisiblePane

virtual CWnd* GetFirstVisiblePane() const;

Valor de retorno

Comentários

CPaneContainerManager::GetMinMaxOffset

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

Parâmetros

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

Comentários

CPaneContainerManager::GetMinSize

virtual void GetMinSize(CSize& size);

Parâmetros

[in] size

Comentários

CPaneContainerManager::GetNodeCount

int GetNodeCount() const;

Valor de retorno

Comentários

CPaneContainerManager::GetPaneContainerRTC

CRuntimeClass* GetPaneContainerRTC() const;

Valor de retorno

Comentários

CPaneContainerManager::GetPaneCount

int GetPaneCount() const;

Valor de retorno

Comentários

CPaneContainerManager::GetTotalRefCount

int GetTotalRefCount() const;

Valor de retorno

Comentários

CPaneContainerManager::GetVisiblePaneCount

virtual int GetVisiblePaneCount() const;

Valor de retorno

Comentários

CPaneContainerManager::GetWindowRect

virtual void GetWindowRect(CRect& rect) const;

Parâmetros

[in] rect

Comentários

CPaneContainerManager::HideAll

virtual void HideAll();

Comentários

CPaneContainerManager::InsertPane

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

Parâmetros

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

Valor de retorno

Comentários

CPaneContainerManager::IsAutoHideMode

BOOL IsAutoHideMode() const;

Valor de retorno

Comentários

CPaneContainerManager::IsEmpty

BOOL IsEmpty() const;

Valor de retorno

Comentários

CPaneContainerManager::IsRootPaneContainerVisible

virtual BOOL IsRootPaneContainerVisible() const;

Valor de retorno

Comentários

CPaneContainerManager::NotifyPaneDivider

void NotifyPaneDivider();

Comentários

CPaneContainerManager::OnPaneDividerMove

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

Parâmetros

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

Valor de retorno

Comentários

CPaneContainerManager::OnShowPane

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

Parâmetros

[in] pBar
[in] bShow

Valor de retorno

Comentários

CPaneContainerManager::PaneFromPoint

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

Parâmetros

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

Valor de retorno

Comentários

CPaneContainerManager::ReleaseEmptyPaneContainers

void ReleaseEmptyPaneContainers();

Comentários

CPaneContainerManager::RemoveAllPanesAndPaneDividers

void RemoveAllPanesAndPaneDividers();

Comentários

CPaneContainerManager::RemoveNonValidPanes

void RemoveNonValidPanes();

Comentários

CPaneContainerManager::RemovePaneDivider

virtual void RemovePaneDivider(CPaneDivider* pSlider);

Parâmetros

[in] pSlider

Comentários

CPaneContainerManager::RemovePaneFromPaneContainer

virtual BOOL RemovePaneFromPaneContainer(CDockablePane* pControlBar);

Parâmetros

[in] pControlBar

Valor de retorno

Comentários

CPaneContainerManager::ReplacePane

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

Parâmetros

[in] pBarOld
[in] pBarNew

Valor de retorno

Comentários

CPaneContainerManager::ResizePaneContainers

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

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

Parâmetros

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

Comentários

CPaneContainerManager::Serialize

void Serialize(CArchive& ar);

Parâmetros

[in] ar

Comentários

CPaneContainerManager::SetDefaultPaneDividerForPanes

void SetDefaultPaneDividerForPanes(CPaneDivider* pSlider);

Parâmetros

[in] pSlider

Comentários

CPaneContainerManager::SetPaneContainerRTC

void SetPaneContainerRTC(CRuntimeClass* pContainerRTC);

Parâmetros

[in] pContainerRTC

Comentários

CPaneContainerManager::SetResizeMode

virtual void SetResizeMode(BOOL bResize);

Parâmetros

[in] bResize

Comentários

CPaneContainerManager::StoreRecentDockSiteInfo

virtual void StoreRecentDockSiteInfo(CDockablePane* pBar);

Parâmetros

[in] pBar

Comentários

Confira também

Gráfico da hierarquia
Classes
Classe CObject
Classe CPaneContainer
Classe CPaneDivider