Partilhar via


Classe CPaneContainer

Observação

A biblioteca Microsoft Foundation Classes (MFC) continua a ser suportada. No entanto, já não estamos a adicionar funcionalidades nem a atualizar a documentação.

A CPaneContainer classe é um componente básico do modelo de acoplamento implementado pela MFC. Um objeto desta classe armazena apontadores para dois painéis de acoplamento ou para duas instâncias de CPaneContainer. Também armazena um ponteiro para o divisor que separa os vidros (ou os recipientes). Ao aninhar contentores dentro de contentores, a estrutura pode construir uma árvore binária que representa layouts complexos de acoplamento. A raiz da árvore binária é armazenada num objeto CPaneContainerManager .

Para mais detalhes, consulte o código-fonte localizado na pasta VC\atlmfc\src\mfc da sua instalação no Visual Studio.

Sintaxe

class CPaneContainer : public CObject

Membros

Construtores Públicos

Nome Description
CPaneContainer::CPaneContainer Construtor padrão.

Métodos Públicos

Nome Description
CPaneContainer::AddPane
CPaneContainer::AddRef
CPaneContainer::AddSubPaneContainer
CPaneContainer::CalcAvailablePaneSpace
CPaneContainer::CalcAvailableSpace
CPaneContainer::CalculateRecentSize
CPaneContainer::CheckPaneDividerVisibilidade
CPaneContainer::Copiar
CPaneContainer::D eletePane
CPaneContainer::FindSubPaneContainer
CPaneContainer::FindTabbedPane
CPaneContainer::GetAssociatedSiblingPaneIDs
CPaneContainer::GetLeftPane
CPaneContainer::GetLeftPaneContainer
CPaneContainer::GetMinSize
CPaneContainer::GetMinSizeLeftLeft
CPaneContainer::GetMinSizeRight
CPaneContainer::GetNodeCount
CPaneContainer::GetPaneDivider
CPaneContainer::GetParentPaneContainer
CPaneContainer::GetRecentPaneDividerRect
CPaneContainer::GetRecentPaneDividerStyle
CPaneContainer::GetRecentPercent
CPaneContainer::GetRefCount
CPaneContainer::GetRedimensionStep
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::Redimensionar
CPaneContainer::RedimensionPane
CPaneContentor::RedimensionarParteDePaneContainer
CPaneContainer::Serialize Lê ou escreve este objeto a partir de ou para um arquivo. ( Sobrepõe CObject::Serialize.)
CPaneContainer::SetPane
CPaneContainer::SetPaneContainer
CPaneContainer::SetPaneDivider
CPaneContainer::SetParentPaneContainer
CPaneContainer::SetRecentPercent
CPaneContainer::SetUpByID
CPaneContainer::StoreRecentDockSiteInfo
CPaneContainer::StretchPaneContainer

Observações

CPaneContainer Os objetos são criados automaticamente pelo framework.

Example

O exemplo seguinte demonstra como construir uma instância da CPaneContainer classe. Este excerto de código faz parte da amostra Set Pane Size.

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);

Hierarquia de herança

CObject

CPaneContainer

Requerimentos

Cabeçalho: afxpanecontainer.h

CPaneContainer::AddPane

CDockablePane* AddPane(CDockablePane* pBar);

Parâmetros

[dentro] pBar

Valor de retorno

Observações

CPaneContainer::AddRef

void AddRef();

Observações

CPaneContainer::AddSubPaneContainer

BOOL AddSubPaneContainer(
    CPaneContainer* pContainer,
    BOOL bRightNodeNew);

Parâmetros

[dentro] pContainer
[dentro] bRightNodeNew

Valor de retorno

Observações

CPaneContainer::CalcAvailablePaneSpace

virtual int CalcAvailablePaneSpace(
    int nRequiredOffset,
    CPane* pBar,
    CPaneContainer* pContainer,
    BOOL bLeftBar);

Parâmetros

[dentro] nDeslocamento Necessário
[dentro] pBar
[dentro] pContainer
[dentro] bLeftBar

Valor de retorno

Observações

CPaneContainer::CalcAvailableSpace

virtual CSize CalcAvailableSpace(
    CSize sizeStretch,
    BOOL bLeftBar);

Parâmetros

[dentro] tamanhoStretch
[dentro] bLeftBar

Valor de retorno

Observações

CPaneContainer::CalculateRecentSize

void CalculateRecentSize();

Observações

CPaneContainer::CheckPaneDividerVisibilidade

void CheckPaneDividerVisibility();

Observações

CPaneContainer::Copiar

virtual CPaneContainer* Copy(CPaneContainer* pParentContainer);

Parâmetros

[dentro] pParentContainer

Valor de retorno

Observações

CPaneContainer::CPaneContainer

CPaneContainer(
    CPaneContainerManager* pManager = NULL,
    CDockablePane* pLeftBar = NULL,
    CDockablePane* pRightBar = NULL,
    CPaneDivider* pSlider = NULL);

Parâmetros

[dentro] pManager
[dentro] pLeftBar
[dentro] pRightBar
[dentro] pSlider

Observações

CPaneContainer::D eletePane

virtual void DeletePane(
    CDockablePane* pBar,
    BC_FIND_CRITERIA barType);

Parâmetros

[dentro] pBar
[dentro] BarType

Observações

CPaneContainer::FindSubPaneContainer

CPaneContainer* FindSubPaneContainer(
    const CObject* pObject,
    BC_FIND_CRITERIA findCriteria);

Parâmetros

[dentro] pObjeto
[dentro] FindCriteria

Valor de retorno

Observações

CPaneContainer::FindTabbedPane

CDockablePane* FindTabbedPane(UINT nID);

Parâmetros

[dentro] nID

Valor de retorno

Observações

CPaneContainer::GetAssociatedSiblingPaneIDs

CList<UINT, UINT>* GetAssociatedSiblingPaneIDs(CDockablePane* pBar);

Parâmetros

[dentro] pBar

Valor de retorno

Observações

CPaneContainer::GetLeftPane

const CDockablePane* GetLeftPane() const;

Valor de retorno

Observações

CPaneContainer::GetLeftPaneContainer

const CPaneContainer* GetLeftPaneContainer() const;

Valor de retorno

Observações

CPaneContainer::GetMinSize

virtual void GetMinSize(CSize& size) const;

Parâmetros

[dentro] Tamanho

Observações

CPaneContainer::GetMinSizeLeftLeft

virtual void GetMinSizeLeft(CSize& size) const;

Parâmetros

[dentro] Tamanho

Observações

CPaneContainer::GetMinSizeRight

virtual void GetMinSizeRight(CSize& size) const;

Parâmetros

[dentro] Tamanho

Observações

CPaneContainer::GetNodeCount

int GetNodeCount() const;

Valor de retorno

Observações

CPaneContainer::GetPaneDivider

const CPaneDivider* GetPaneDivider() const;

Valor de retorno

Observações

CPaneContainer::GetParentPaneContainer

CPaneContainer* GetParentPaneContainer() const;

Valor de retorno

Observações

CPaneContainer::GetRecentPaneDividerRect

CRect GetRecentPaneDividerRect() const;

Valor de retorno

Observações

CPaneContainer::GetRecentPaneDividerStyle

DWORD GetRecentPaneDividerStyle() const;

Valor de retorno

Observações

CPaneContainer::GetRecentPercent

int GetRecentPercent();

Valor de retorno

Observações

CPaneContainer::GetRefCount

LONG GetRefCount();

Valor de retorno

Observações

CPaneContainer::GetRedimensionStep

virtual int GetResizeStep() const;

Valor de retorno

Observações

CPaneContainer::GetRightPane

const CDockablePane* GetRightPane() const;

Valor de retorno

Observações

CPaneContainer::GetRightPaneContainer

const CPaneContainer* GetRightPaneContainer() const;

Valor de retorno

Observações

CPaneContainer::GetTotalReferenceCount

int GetTotalReferenceCount() const;

Valor de retorno

Observações

CPaneContainer::GetWindowRect

virtual void GetWindowRect(
    CRect& rect,
    BOOL bIgnoreVisibility = FALSE) const;

Parâmetros

[dentro] Rect
[dentro] bIgnorarVisibilidade

Observações

CPaneContainer::IsDisposed

BOOL IsDisposed() const;

Valor de retorno

Observações

CPaneContainer::IsEmpty

BOOL IsEmpty() const;

Valor de retorno

Observações

CPaneContainer::IsLeftPane

BOOL IsLeftPane(CDockablePane* pBar) const;

Parâmetros

[dentro] pBar

Valor de retorno

Observações

CPaneContainer::IsLeftPaneContainer

BOOL IsLeftPaneContainer() const;

Valor de retorno

Observações

CPaneContainer::IsLeftPartEmpty

BOOL IsLeftPartEmpty(BOOL bCheckVisibility = FALSE) const;

Parâmetros

[dentro] bCheckVisibilidade

Valor de retorno

Observações

CPaneContainer::IsRightPartEmpty

BOOL IsRightPartEmpty(BOOL bCheckVisibility = FALSE) const;

Parâmetros

[dentro] bCheckVisibilidade

Valor de retorno

Observações

CPaneContainer::IsVisible

BOOL IsVisible() const;

Valor de retorno

Observações

CPaneContainer::Move

virtual void Move(CPoint ptNewLeftTop);

Parâmetros

[dentro] ptNewLeftTop

Observações

CPaneContainer::OnDeleteHidePane

void OnDeleteHidePane(
    CDockablePane* pBar,
    BOOL bHide);

Parâmetros

[dentro] pBar
[dentro] bHide

Observações

CPaneContainer::OnMoveInternalPaneDivider

virtual int OnMoveInternalPaneDivider(
    int nOffset,
    HDWP& hdwp);

Parâmetros

[dentro] nOffset
[dentro] HDWP

Valor de retorno

Observações

CPaneContainer::OnShowPane

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

Parâmetros

[dentro] pBar
[dentro] bShow

Observações

CPaneContainer::Release

DWORD Release();

Valor de retorno

Observações

CPaneContainer::ReleaseEmptyPaneContainer

void ReleaseEmptyPaneContainer();

Observações

CPaneContainer::RemoveNonValidPanes

void RemoveNonValidPanes();

Observações

CPaneContainer::RemovePane

virtual void RemovePane(CDockablePane* pBar);

Parâmetros

[dentro] pBar

Observações

CPaneContainer::Redimensionar

virtual void Resize(
    CRect rect,
    HDWP& hdwp,
    BOOL bRedraw = FALSE);

Parâmetros

[dentro] Rect
[dentro] HDWP
[dentro] bRedraw

Observações

CPaneContainer::RedimensionPane

virtual void ResizePane(
    int nOffset,
    CPane* pBar,
    CPaneContainer* pContainer,
    BOOL bHorz,
    BOOL bLeftBar,
    HDWP& hdwp);

Parâmetros

[dentro] nOffset
[dentro] pBar
[dentro] pContainer
[dentro] bHorz
[dentro] bLeftBar
[dentro] HDWP

Observações

CPaneContentor::RedimensionarParteDePaneContainer

virtual void ResizePartOfPaneContainer(
    int nOffset,
    BOOL bLeftPart,
    HDWP& hdwp);

Parâmetros

[dentro] nOffset
[dentro] bLeftPart
[dentro] HDWP

Observações

CPaneContainer::Serialize

void Serialize(CArchive& ar);

Parâmetros

[dentro] ar

Observações

CPaneContainer::SetPane

void SetPane(
    CDockablePane* pBar,
    BOOL bLeft);

Parâmetros

[dentro] pBar
[dentro] bEsquerda

Observações

CPaneContainer::SetPaneContainer

void SetPaneContainer(
    CPaneContainer* pContainer,
    BOOL bLeft);

Parâmetros

[dentro] pContainer
[dentro] bEsquerda

Observações

CPaneContainer::SetPaneDivider

void SetPaneDivider(CPaneDivider* pSlider);

Parâmetros

[dentro] pSlider

Observações

CPaneContainer::SetParentPaneContainer

void SetParentPaneContainer(CPaneContainer* p);

Parâmetros

[dentro] p

Observações

CPaneContainer::SetRecentPercent

void SetRecentPercent(int nRecentPercent);

Parâmetros

[dentro] nRecentPercent

Observações

CPaneContainer::SetUpByID

BOOL SetUpByID(
    UINT nID,
    CDockablePane* pBar);

Parâmetros

[dentro] nID
[dentro] pBar

Valor de retorno

Observações

CPaneContainer::StoreRecentDockSiteInfo

virtual void StoreRecentDockSiteInfo(CDockablePane* pBar);

Parâmetros

[dentro] pBar

Observações

CPaneContainer::StretchPaneContainer

virtual int StretchPaneContainer(
    int nOffset,
    BOOL bStretchHorz,
    BOOL bLeftBar,
    BOOL bMoveSlider,
    HDWP& hdwp);

Parâmetros

[dentro] nOffset
[dentro] bStretchHorz
[dentro] bLeftBar
[dentro] bMoveSlider
[dentro] HDWP

Valor de retorno

Observações

Consulte também

Gráfico de Hierarquia
Classes
CObject Classe
Classe CPaneContainerManager