Condividi tramite


Classe CPaneContainerManager

La CPaneContainerManager classe gestisce lo spazio di archiviazione e la visualizzazione del layout di ancoraggio corrente. Per altri dettagli, vedere il codice sorgente che si trova nella cartella VC\atlmfc\src\mfc dell'installazione di Visual Studio.

Sintassi

class CPaneContainerManager : public CObject

Membri

Metodi pubblici

Nome Descrizione
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 Legge o scrive l'oggetto corrente da o in un archivio. Esegue l'override di CObject::Serialize.
CPaneContainerManager::SetDefaultPaneDividerForPanes
CPaneContainerManager::SetPaneContainerRTC
CPaneContainerManager::SetResizeMode
CPaneContainerManager::StoreRecentDockSiteInfo

Osservazioni:

Il framework crea automaticamente istanze di CPaneContainerManager oggetti e le incorpora in oggetti classe CPaneDivider o in oggetti classe CMultiPaneFrameWnd.

La CPaneContainerManager classe archivia un puntatore alla radice di un albero binario compilato da oggetti CPaneContainer .

Esempio

Nell'esempio seguente viene illustrato come ottenere un riferimento a un CPaneContainerManager oggetto . Questo frammento di codice fa parte dell'esempio Imposta dimensioni riquadro.

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

Gerarchia di ereditarietà

CObject

CPaneContainerManager

Requisiti

Intestazione: afxpanecontainermanager.h

CPaneContainerManager::AddPane

virtual void AddPane(CDockablePane* pControlBarToAdd);

Parametri

[in] pControlBarToAdd

Osservazioni:

CPaneContainerManager::AddPaneContainerManager

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

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

Parametri

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

Valore restituito

Osservazioni:

CPaneContainerManager::AddPaneContainerManagerToDockablePane

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

Parametri

[in] pTargetControlBar
[in] srcManager

Valore restituito

Osservazioni:

CPaneContainerManager::AddPanesToList

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

Parametri

[in] plstControlBars
[in] plstSliders

Osservazioni:

CPaneContainerManager::AddPaneToList

void AddPaneToList(CDockablePane* pControlBarToAdd);

Parametri

[in] pControlBarToAdd

Osservazioni:

CPaneContainerManager::AddPaneToRecentPaneContainer

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

Parametri

[in] pBarToAdd
[in] pRecentContainer

Valore restituito

Osservazioni:

CPaneContainerManager::CalcRects

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

Parametri

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

Osservazioni:

CPaneContainerManager::CanBeAttached

virtual BOOL CanBeAttached() const;

Valore restituito

Osservazioni:

CPaneContainerManager::CheckAndRemoveNonValidPane

BOOL CheckAndRemoveNonValidPane(CWnd* pWnd);

Parametri

[in] pWnd

Valore restituito

Osservazioni:

CPaneContainerManager::CheckForMiniFrameAndCaption

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

Parametri

[in] punto
[in] ppTargetControlBar

Valore restituito

Osservazioni:

CPaneContainerManager::Create

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

Parametri

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

Valore restituito

Osservazioni:

CPaneContainerManager::D oesAllowDynInsertBefore

virtual BOOL DoesAllowDynInsertBefore() const;

Valore restituito

Osservazioni:

CPaneContainerManager::D oesContainFloatingPane

virtual BOOL DoesContainFloatingPane();

Valore restituito

Osservazioni:

CPaneContainerManager::EnableGrippers

virtual void EnableGrippers(BOOL bEnable);

Parametri

[in] bEnable

Osservazioni:

CPaneContainerManager::FindPaneContainer

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

Parametri

[in] pBar
[in] bLeftBar

Valore restituito

Osservazioni:

CPaneContainerManager::FindTabbedPane

CDockablePane* FindTabbedPane(UINT nID);

Parametri

[in] nID

Valore restituito

Osservazioni:

CPaneContainerManager::GetAvailableSpace

virtual void GetAvailableSpace(CRect& rect) const;

Parametri

[in] rect

Osservazioni:

CPaneContainerManager::GetDefaultPaneDivider

CPaneDivider* GetDefaultPaneDivider() const;

Valore restituito

Osservazioni:

CPaneContainerManager::GetDockSiteFrameWnd

virtual CWnd* GetDockSiteFrameWnd();

Valore restituito

Osservazioni:

CPaneContainerManager::GetFirstPane

virtual CBasePane* GetFirstPane() const;

Valore restituito

Osservazioni:

CPaneContainerManager::GetFirstVisiblePane

virtual CWnd* GetFirstVisiblePane() const;

Valore restituito

Osservazioni:

CPaneContainerManager::GetMinMaxOffset

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

Parametri

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

Osservazioni:

CPaneContainerManager::GetMinSize

virtual void GetMinSize(CSize& size);

Parametri

[in] grandezza

Osservazioni:

CPaneContainerManager::GetNodeCount

int GetNodeCount() const;

Valore restituito

Osservazioni:

CPaneContainerManager::GetPaneContainerRTC

CRuntimeClass* GetPaneContainerRTC() const;

Valore restituito

Osservazioni:

CPaneContainerManager::GetPaneCount

int GetPaneCount() const;

Valore restituito

Osservazioni:

CPaneContainerManager::GetTotalRefCount

int GetTotalRefCount() const;

Valore restituito

Osservazioni:

CPaneContainerManager::GetVisiblePaneCount

virtual int GetVisiblePaneCount() const;

Valore restituito

Osservazioni:

CPaneContainerManager::GetWindowRect

virtual void GetWindowRect(CRect& rect) const;

Parametri

[in] rect

Osservazioni:

CPaneContainerManager::HideAll

virtual void HideAll();

Osservazioni:

CPaneContainerManager::InsertPane

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

Parametri

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

Valore restituito

Osservazioni:

CPaneContainerManager::IsAutoHideMode

BOOL IsAutoHideMode() const;

Valore restituito

Osservazioni:

CPaneContainerManager::IsEmpty

BOOL IsEmpty() const;

Valore restituito

Osservazioni:

CPaneContainerManager::IsRootPaneContainerVisible

virtual BOOL IsRootPaneContainerVisible() const;

Valore restituito

Osservazioni:

CPaneContainerManager::NotifyPaneDivider

void NotifyPaneDivider();

Osservazioni:

CPaneContainerManager::OnPaneDividerMove

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

Parametri

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

Valore restituito

Osservazioni:

CPaneContainerManager::OnShowPane

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

Parametri

[in] pBar
[in] bShow

Valore restituito

Osservazioni:

CPaneContainerManager::P aneFromPoint

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

Parametri

[in] punto
[in] nSensitivity
[in] bExactBar
[in] bIsTabArea
[in] bCaption

Valore restituito

Osservazioni:

CPaneContainerManager::ReleaseEmptyPaneContainers

void ReleaseEmptyPaneContainers();

Osservazioni:

CPaneContainerManager::RemoveAllPanesAndPaneDividers

void RemoveAllPanesAndPaneDividers();

Osservazioni:

CPaneContainerManager::RemoveNonValidPanes

void RemoveNonValidPanes();

Osservazioni:

CPaneContainerManager::RemovePaneDivider

virtual void RemovePaneDivider(CPaneDivider* pSlider);

Parametri

[in] pSlider

Osservazioni:

CPaneContainerManager::RemovePaneFromPaneContainer

virtual BOOL RemovePaneFromPaneContainer(CDockablePane* pControlBar);

Parametri

[in] pControlBar

Valore restituito

Osservazioni:

CPaneContainerManager::ReplacePane

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

Parametri

[in] pBarOld
[in] pBarNew

Valore restituito

Osservazioni:

CPaneContainerManager::ResizePaneContainers

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

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

Parametri

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

Osservazioni:

CPaneContainerManager::Serialize

void Serialize(CArchive& ar);

Parametri

[in] ar

Osservazioni:

CPaneContainerManager::SetDefaultPaneDividerForPanes

void SetDefaultPaneDividerForPanes(CPaneDivider* pSlider);

Parametri

[in] pSlider

Osservazioni:

CPaneContainerManager::SetPaneContainerRTC

void SetPaneContainerRTC(CRuntimeClass* pContainerRTC);

Parametri

[in] pContainerRTC

Osservazioni:

CPaneContainerManager::SetResizeMode

virtual void SetResizeMode(BOOL bResize);

Parametri

[in] bResize

Osservazioni:

CPaneContainerManager::StoreRecentDockSiteInfo

virtual void StoreRecentDockSiteInfo(CDockablePane* pBar);

Parametri

[in] pBar

Osservazioni:

Vedi anche

Grafico della gerarchia
Classi
Classe CObject
Classe CPaneContainer
Classe CPaneDivider