Udostępnij za pośrednictwem


Klasa CPaneContainerManager

Klasa CPaneContainerManager zarządza magazynem i wyświetla bieżący układ dokowania. Aby uzyskać więcej informacji, zobacz kod źródłowy znajdujący się w folderze VC\atlmfc\src\mfc instalacji programu Visual Studio.

Składnia

class CPaneContainerManager : public CObject

Elementy członkowskie

Metody publiczne

Nazwa/nazwisko opis
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 Odczytuje lub zapisuje ten obiekt z lub do archiwum. (Przesłonięcia) CObject::Serialize.)
CPaneContainerManager::SetDefaultPaneDividerForPanes
CPaneContainerManager::SetPaneContainerRTC
CPaneContainerManager::SetResizeMode
CPaneContainerManager::StoreRecentDockSiteInfo

Uwagi

Platforma automatycznie tworzy wystąpienia CPaneContainerManager obiektów i osadza je w obiektach klasy CPaneDivider lub w obiektach klasy CMultiPaneFrameWnd.

Klasa CPaneContainerManager przechowuje wskaźnik do katalogu głównego drzewa binarnego utworzonego na podstawie obiektów CPaneContainer .

Przykład

W poniższym przykładzie pokazano, jak uzyskać odwołanie do CPaneContainerManager obiektu. Ten fragment kodu jest częścią przykładu Ustawianie rozmiaru okienka.

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

Hierarchia dziedziczenia

Obiekt CObject

CPaneContainerManager

Wymagania

Nagłówek: afxpanecontainermanager.h

CPaneContainerManager::AddPane

virtual void AddPane(CDockablePane* pControlBarToAdd);

Parametry

[in] pControlBarToAdd

Uwagi

CPaneContainerManager::AddPaneContainerManager

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

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

Parametry

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

Wartość zwracana

Uwagi

CPaneContainerManager::AddPaneContainerManagerToDockablePane

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

Parametry

[in] pTargetControlBar
[in] srcManager

Wartość zwracana

Uwagi

CPaneContainerManager::AddPanesToList

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

Parametry

[in] plstControlBars
[in] plstSliders

Uwagi

CPaneContainerManager::AddPaneToList

void AddPaneToList(CDockablePane* pControlBarToAdd);

Parametry

[in] pControlBarToAdd

Uwagi

CPaneContainerManager::AddPaneToRecentPaneContainer

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

Parametry

[in] pBarToAdd
[in] pRecentContainer

Wartość zwracana

Uwagi

CPaneContainerManager::CalcRects

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

Parametry

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

Uwagi

CPaneContainerManager::CanBeAttached

virtual BOOL CanBeAttached() const;

Wartość zwracana

Uwagi

CPaneContainerManager::CheckAndRemoveNonValidPane

BOOL CheckAndRemoveNonValidPane(CWnd* pWnd);

Parametry

[in] pWnd

Wartość zwracana

Uwagi

CPaneContainerManager::CheckForMiniFrameAndCaption

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

Parametry

[in] punkt
[in] ppTargetControlBar

Wartość zwracana

Uwagi

CPaneContainerManager::Create

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

Parametry

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

Wartość zwracana

Uwagi

CPaneContainerManager::D oesAllowDynInsertBefore

virtual BOOL DoesAllowDynInsertBefore() const;

Wartość zwracana

Uwagi

CPaneContainerManager::D oesContainFloatingPane

virtual BOOL DoesContainFloatingPane();

Wartość zwracana

Uwagi

CPaneContainerManager::EnableGrippers

virtual void EnableGrippers(BOOL bEnable);

Parametry

[in] bEnable

Uwagi

CPaneContainerManager::FindPaneContainer

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

Parametry

[in] Pasek p
[in] bLeftBar

Wartość zwracana

Uwagi

CPaneContainerManager::FindTabbedPane

CDockablePane* FindTabbedPane(UINT nID);

Parametry

[in] Nid

Wartość zwracana

Uwagi

CPaneContainerManager::GetAvailableSpace

virtual void GetAvailableSpace(CRect& rect) const;

Parametry

[in] Rect

Uwagi

CPaneContainerManager::GetDefaultPaneDivider

CPaneDivider* GetDefaultPaneDivider() const;

Wartość zwracana

Uwagi

CPaneContainerManager::GetDockSiteFrameWnd

virtual CWnd* GetDockSiteFrameWnd();

Wartość zwracana

Uwagi

CPaneContainerManager::GetFirstPane

virtual CBasePane* GetFirstPane() const;

Wartość zwracana

Uwagi

CPaneContainerManager::GetFirstVisiblePane

virtual CWnd* GetFirstVisiblePane() const;

Wartość zwracana

Uwagi

CPaneContainerManager::GetMinMaxOffset

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

Parametry

[in] PSlider
[in] nMinOffset
[in] nMaxOffset
[in] nKrok

Uwagi

CPaneContainerManager::GetMinSize

virtual void GetMinSize(CSize& size);

Parametry

[in] rozmiar

Uwagi

CPaneContainerManager::GetNodeCount

int GetNodeCount() const;

Wartość zwracana

Uwagi

CPaneContainerManager::GetPaneContainerRTC

CRuntimeClass* GetPaneContainerRTC() const;

Wartość zwracana

Uwagi

CPaneContainerManager::GetPaneCount

int GetPaneCount() const;

Wartość zwracana

Uwagi

CPaneContainerManager::GetTotalRefCount

int GetTotalRefCount() const;

Wartość zwracana

Uwagi

CPaneContainerManager::GetVisiblePaneCount

virtual int GetVisiblePaneCount() const;

Wartość zwracana

Uwagi

CPaneContainerManager::GetWindowRect

virtual void GetWindowRect(CRect& rect) const;

Parametry

[in] Rect

Uwagi

CPaneContainerManager::HideAll

virtual void HideAll();

Uwagi

CPaneContainerManager::InsertPane

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

Parametry

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

Wartość zwracana

Uwagi

CPaneContainerManager::IsAutoHideMode

BOOL IsAutoHideMode() const;

Wartość zwracana

Uwagi

CPaneContainerManager::IsEmpty

BOOL IsEmpty() const;

Wartość zwracana

Uwagi

CPaneContainerManager::IsRootPaneContainerVisible

virtual BOOL IsRootPaneContainerVisible() const;

Wartość zwracana

Uwagi

CPaneContainerManager::NotifyPaneDivider

void NotifyPaneDivider();

Uwagi

CPaneContainerManager::OnPaneDividerMove

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

Parametry

[in] PSlider
[in] uFlags
[in] nOffset
[in] hdwp

Wartość zwracana

Uwagi

CPaneContainerManager::OnShowPane

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

Parametry

[in] Pasek p
[in] bShow

Wartość zwracana

Uwagi

CPaneContainerManager::P aneFromPoint

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

Parametry

[in] punkt
[in] nSensitivity
[in] bExactBar
[in] bIsTabArea
[in] bCaption

Wartość zwracana

Uwagi

CPaneContainerManager::ReleaseEmptyPaneContainers

void ReleaseEmptyPaneContainers();

Uwagi

CPaneContainerManager::RemoveAllPanesAndPaneDividers

void RemoveAllPanesAndPaneDividers();

Uwagi

CPaneContainerManager::RemoveNonValidPanes

void RemoveNonValidPanes();

Uwagi

CPaneContainerManager::RemovePaneDivider

virtual void RemovePaneDivider(CPaneDivider* pSlider);

Parametry

[in] PSlider

Uwagi

CPaneContainerManager::RemovePaneFromPaneContainer

virtual BOOL RemovePaneFromPaneContainer(CDockablePane* pControlBar);

Parametry

[in] pControlBar

Wartość zwracana

Uwagi

CPaneContainerManager::ReplacePane

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

Parametry

[in] pBarOld
[in] pBarNowy

Wartość zwracana

Uwagi

CPaneContainerManager::ResizePaneContainers

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

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

Parametry

[in] nSide
[in] bExpand
[in] nOffset
[in] hdwp
[in] Rect

Uwagi

CPaneContainerManager::Serialize

void Serialize(CArchive& ar);

Parametry

[in] Ar

Uwagi

CPaneContainerManager::SetDefaultPaneDividerForPanes

void SetDefaultPaneDividerForPanes(CPaneDivider* pSlider);

Parametry

[in] PSlider

Uwagi

CPaneContainerManager::SetPaneContainerRTC

void SetPaneContainerRTC(CRuntimeClass* pContainerRTC);

Parametry

[in] pContainerRTC

Uwagi

CPaneContainerManager::SetResizeMode

virtual void SetResizeMode(BOOL bResize);

Parametry

[in] bResize

Uwagi

CPaneContainerManager::StoreRecentDockSiteInfo

virtual void StoreRecentDockSiteInfo(CDockablePane* pBar);

Parametry

[in] Pasek p

Uwagi

Zobacz też

Wykres hierarchii
Klasy
Klasa CObject
Klasa CPaneContainer
Klasa CPaneDivider