Compartir a través de


Clase CPaneContainer

La clase CPaneContainer es un componente básico del modelo de acoplamiento implementado por MFC. Un objeto de esta clase almacena punteros a dos paneles de acoplamiento o a dos instancias de CPaneContainer. También almacena un puntero al divisor que separa los paneles (o los contenedores). Anidando contenedores dentro de contenedores, el marco puede compilar un árbol binario que representa diseños complejos de acoplamiento. La raíz del árbol binario se almacena en un objeto CPaneContainerManager.

Para obtener información más detallada, consulta el código fuente que se ubica en la carpeta VC\atlmfc\src\mfc de la instalación de Visual Studio.

Sintaxis

class CPaneContainer : public CObject

Miembros

Constructores públicos

Nombre Descripción
CPaneContainer::CPaneContainer Constructor predeterminado.

Métodos públicos

Nombre Descripción
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 Lee o escribe este objeto de o en un archivo. (Invalida CObject::Serialize).
CPaneContainer::SetPane
CPaneContainer::SetPaneContainer
CPaneContainer::SetPaneDivider
CPaneContainer::SetParentPaneContainer
CPaneContainer::SetRecentPercent
CPaneContainer::SetUpByID
CPaneContainer::StoreRecentDockSiteInfo
CPaneContainer::StretchPaneContainer

Comentarios

El marco crea automáticamente los objetos CPaneContainer.

Ejemplo

En el ejemplo siguiente se muestra cómo construir una instancia de la clase CPaneContainer. Este fragmento de código forma parte del ejemplo de Establecer tamaño de panel.

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

Jerarquía de herencia

CObject

CPaneContainer

Requisitos

Encabezado: afxpanecontainer.h

CPaneContainer::AddPane

CDockablePane* AddPane(CDockablePane* pBar);

Parámetros

[in] pBar

Valor devuelto

Comentarios

CPaneContainer::AddRef

void AddRef();

Comentarios

CPaneContainer::AddSubPaneContainer

BOOL AddSubPaneContainer(
    CPaneContainer* pContainer,
    BOOL bRightNodeNew);

Parámetros

[in] pContainer
[in] bRightNodeNew

Valor devuelto

Comentarios

CPaneContainer::CalcAvailablePaneSpace

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

Parámetros

[in] nRequiredOffset
[in] pBar
[in] pContainer
[in] bLeftBar

Valor devuelto

Comentarios

CPaneContainer::CalcAvailableSpace

virtual CSize CalcAvailableSpace(
    CSize sizeStretch,
    BOOL bLeftBar);

Parámetros

[in] sizeStretch
[in] bLeftBar

Valor devuelto

Comentarios

CPaneContainer::CalculateRecentSize

void CalculateRecentSize();

Comentarios

CPaneContainer::CheckPaneDividerVisibility

void CheckPaneDividerVisibility();

Comentarios

CPaneContainer::Copy

virtual CPaneContainer* Copy(CPaneContainer* pParentContainer);

Parámetros

[in] pParentContainer

Valor devuelto

Comentarios

CPaneContainer::CPaneContainer

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

Parámetros

[in] pManager
[in] pLeftBar
[in] pRightBar
[in] pSlider

Comentarios

CPaneContainer::DeletePane

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

Parámetros

[in] pBar
[in] barType

Comentarios

CPaneContainer::FindSubPaneContainer

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

Parámetros

[in] pObject
[in] findCriteria

Valor devuelto

Comentarios

CPaneContainer::FindTabbedPane

CDockablePane* FindTabbedPane(UINT nID);

Parámetros

[in] nID

Valor devuelto

Comentarios

CPaneContainer::GetAssociatedSiblingPaneIDs

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

Parámetros

[in] pBar

Valor devuelto

Comentarios

CPaneContainer::GetLeftPane

const CDockablePane* GetLeftPane() const;

Valor devuelto

Comentarios

CPaneContainer::GetLeftPaneContainer

const CPaneContainer* GetLeftPaneContainer() const;

Valor devuelto

Comentarios

CPaneContainer::GetMinSize

virtual void GetMinSize(CSize& size) const;

Parámetros

[in] size

Comentarios

CPaneContainer::GetMinSizeLeft

virtual void GetMinSizeLeft(CSize& size) const;

Parámetros

[in] size

Comentarios

CPaneContainer::GetMinSizeRight

virtual void GetMinSizeRight(CSize& size) const;

Parámetros

[in] size

Comentarios

CPaneContainer::GetNodeCount

int GetNodeCount() const;

Valor devuelto

Comentarios

CPaneContainer::GetPaneDivider

const CPaneDivider* GetPaneDivider() const;

Valor devuelto

Comentarios

CPaneContainer::GetParentPaneContainer

CPaneContainer* GetParentPaneContainer() const;

Valor devuelto

Comentarios

CPaneContainer::GetRecentPaneDividerRect

CRect GetRecentPaneDividerRect() const;

Valor devuelto

Comentarios

CPaneContainer::GetRecentPaneDividerStyle

DWORD GetRecentPaneDividerStyle() const;

Valor devuelto

Comentarios

CPaneContainer::GetRecentPercent

int GetRecentPercent();

Valor devuelto

Comentarios

CPaneContainer::GetRefCount

LONG GetRefCount();

Valor devuelto

Comentarios

CPaneContainer::GetResizeStep

virtual int GetResizeStep() const;

Valor devuelto

Comentarios

CPaneContainer::GetRightPane

const CDockablePane* GetRightPane() const;

Valor devuelto

Comentarios

CPaneContainer::GetRightPaneContainer

const CPaneContainer* GetRightPaneContainer() const;

Valor devuelto

Comentarios

CPaneContainer::GetTotalReferenceCount

int GetTotalReferenceCount() const;

Valor devuelto

Comentarios

CPaneContainer::GetWindowRect

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

Parámetros

[in] rect
[in] bIgnoreVisibility

Comentarios

CPaneContainer::IsDisposed

BOOL IsDisposed() const;

Valor devuelto

Comentarios

CPaneContainer::IsEmpty

BOOL IsEmpty() const;

Valor devuelto

Comentarios

CPaneContainer::IsLeftPane

BOOL IsLeftPane(CDockablePane* pBar) const;

Parámetros

[in] pBar

Valor devuelto

Comentarios

CPaneContainer::IsLeftPaneContainer

BOOL IsLeftPaneContainer() const;

Valor devuelto

Comentarios

CPaneContainer::IsLeftPartEmpty

BOOL IsLeftPartEmpty(BOOL bCheckVisibility = FALSE) const;

Parámetros

[in] bCheckVisibility

Valor devuelto

Comentarios

CPaneContainer::IsRightPartEmpty

BOOL IsRightPartEmpty(BOOL bCheckVisibility = FALSE) const;

Parámetros

[in] bCheckVisibility

Valor devuelto

Comentarios

CPaneContainer::IsVisible

BOOL IsVisible() const;

Valor devuelto

Comentarios

CPaneContainer::Move

virtual void Move(CPoint ptNewLeftTop);

Parámetros

[in] ptNewLeftTop

Comentarios

CPaneContainer::OnDeleteHidePane

void OnDeleteHidePane(
    CDockablePane* pBar,
    BOOL bHide);

Parámetros

[in] pBar
[in] bHide

Comentarios

CPaneContainer::OnMoveInternalPaneDivider

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

Parámetros

[in] nOffset
[in] hdwp

Valor devuelto

Comentarios

CPaneContainer::OnShowPane

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

Parámetros

[in] pBar
[in] bShow

Comentarios

CPaneContainer::Release

DWORD Release();

Valor devuelto

Comentarios

CPaneContainer::ReleaseEmptyPaneContainer

void ReleaseEmptyPaneContainer();

Comentarios

CPaneContainer::RemoveNonValidPanes

void RemoveNonValidPanes();

Comentarios

CPaneContainer::RemovePane

virtual void RemovePane(CDockablePane* pBar);

Parámetros

[in] pBar

Comentarios

CPaneContainer::Resize

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

Parámetros

[in] rect
[in] hdwp
[in] bRedraw

Comentarios

CPaneContainer::ResizePane

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

Parámetros

[in] nOffset
[in] pBar
[in] pContainer
[in] bHorz
[in] bLeftBar
[in] hdwp

Comentarios

CPaneContainer::ResizePartOfPaneContainer

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

Parámetros

[in] nOffset
[in] bLeftPart
[in] hdwp

Comentarios

CPaneContainer::Serialize

void Serialize(CArchive& ar);

Parámetros

[in] ar

Comentarios

CPaneContainer::SetPane

void SetPane(
    CDockablePane* pBar,
    BOOL bLeft);

Parámetros

[in] pBar
[in] bLeft

Comentarios

CPaneContainer::SetPaneContainer

void SetPaneContainer(
    CPaneContainer* pContainer,
    BOOL bLeft);

Parámetros

[in] pContainer
[in] bLeft

Comentarios

CPaneContainer::SetPaneDivider

void SetPaneDivider(CPaneDivider* pSlider);

Parámetros

[in] pSlider

Comentarios

CPaneContainer::SetParentPaneContainer

void SetParentPaneContainer(CPaneContainer* p);

Parámetros

[in] p

Comentarios

CPaneContainer::SetRecentPercent

void SetRecentPercent(int nRecentPercent);

Parámetros

[in] nRecentPercent

Comentarios

CPaneContainer::SetUpByID

BOOL SetUpByID(
    UINT nID,
    CDockablePane* pBar);

Parámetros

[in] nID
[in] pBar

Valor devuelto

Comentarios

CPaneContainer::StoreRecentDockSiteInfo

virtual void StoreRecentDockSiteInfo(CDockablePane* pBar);

Parámetros

[in] pBar

Comentarios

CPaneContainer::StretchPaneContainer

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

Parámetros

[in] nOffset
[in] bStretchHorz
[in] bLeftBar
[in] bMoveSlider
[in] hdwp

Valor devuelto

Comentarios

Consulte también

Gráfico de jerarquías
Clases
CObject (clase)
CPaneContainerManager (clase)