Poznámka:
Přístup k této stránce vyžaduje autorizaci. Můžete se zkusit přihlásit nebo změnit adresáře.
Přístup k této stránce vyžaduje autorizaci. Můžete zkusit změnit adresáře.
Třída CPaneContainer je základní komponentou dokovacího modelu implementovaného prostředím MFC. Objekt této třídy ukládá ukazatele na dvě ukotvená podokna nebo na dvě instance CPaneContainer. Uloží také ukazatel na rozdělovač, který odděluje podokna (nebo kontejnery). Vnořením kontejnerů do kontejnerů může architektura vytvořit binární strom, který představuje složitá ukotvení rozložení. Kořen binárního stromu je uložen v objektu CPaneContainerManager .
Další podrobnosti najdete ve zdrojovém kódu ve složce VC\atlmfc\src\mfc instalace sady Visual Studio.
Syntaxe
class CPaneContainer : public CObject
Členové
Veřejné konstruktory
| Název | Popis |
|---|---|
| CPaneContainer::CPaneContainer | Výchozí konstruktor. |
Veřejné metody
Poznámky
CPaneContainer objekty jsou vytvořeny automaticky rozhraním.
Příklad
Následující příklad ukazuje, jak vytvořit instanci CPaneContainer třídy. Tento fragment kódu je součástí ukázky Nastavení velikosti podokna.
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);
Hierarchie dědičnosti
Požadavky
Hlavička: afxpanecontainer.h
CPaneContainer::AddPane
CDockablePane* AddPane(CDockablePane* pBar);
Parametry
[v] pBar
Návratová hodnota
Poznámky
CPaneContainer::AddRef
void AddRef();
Poznámky
CPaneContainer::AddSubPaneContainer
BOOL AddSubPaneContainer(
CPaneContainer* pContainer,
BOOL bRightNodeNew);
Parametry
[v] pContainer
[v] bRightNodeNew
Návratová hodnota
Poznámky
CPaneContainer::CalcAvailablePaneSpace
virtual int CalcAvailablePaneSpace(
int nRequiredOffset,
CPane* pBar,
CPaneContainer* pContainer,
BOOL bLeftBar);
Parametry
[v] nRequiredOffset
[v] pBar
[v] pContainer
[v] bLeftBar
Návratová hodnota
Poznámky
CPaneContainer::CalcAvailableSpace
virtual CSize CalcAvailableSpace(
CSize sizeStretch,
BOOL bLeftBar);
Parametry
[v] sizeStretch
[v] bLeftBar
Návratová hodnota
Poznámky
CPaneContainer::CalculateRecentSize
void CalculateRecentSize();
Poznámky
CPaneContainer::CheckPaneDividerVisibility
void CheckPaneDividerVisibility();
Poznámky
CPaneContainer::Copy
virtual CPaneContainer* Copy(CPaneContainer* pParentContainer);
Parametry
[v] pParentContainer
Návratová hodnota
Poznámky
CPaneContainer::CPaneContainer
CPaneContainer(
CPaneContainerManager* pManager = NULL,
CDockablePane* pLeftBar = NULL,
CDockablePane* pRightBar = NULL,
CPaneDivider* pSlider = NULL);
Parametry
[v] pManager
[v] pLeftBar
[v] pRightBar
[v] pSlider
Poznámky
CPaneContainer::D eletePane
virtual void DeletePane(
CDockablePane* pBar,
BC_FIND_CRITERIA barType);
Parametry
[v] pBar
[v] barType
Poznámky
CPaneContainer::FindSubPaneContainer
CPaneContainer* FindSubPaneContainer(
const CObject* pObject,
BC_FIND_CRITERIA findCriteria);
Parametry
[v] objekt pObject
[v] findCriteria
Návratová hodnota
Poznámky
CPaneContainer::FindTabbedPane
CDockablePane* FindTabbedPane(UINT nID);
Parametry
[v] Nid
Návratová hodnota
Poznámky
CPaneContainer::GetAssociatedSiblingPaneIDs
CList<UINT, UINT>* GetAssociatedSiblingPaneIDs(CDockablePane* pBar);
Parametry
[v] pBar
Návratová hodnota
Poznámky
CPaneContainer::GetLeftPane
const CDockablePane* GetLeftPane() const;
Návratová hodnota
Poznámky
CPaneContainer::GetLeftPaneContainer
const CPaneContainer* GetLeftPaneContainer() const;
Návratová hodnota
Poznámky
CPaneContainer::GetMinSize
virtual void GetMinSize(CSize& size) const;
Parametry
[v] velikost
Poznámky
CPaneContainer::GetMinSizeLeft
virtual void GetMinSizeLeft(CSize& size) const;
Parametry
[v] velikost
Poznámky
CPaneContainer::GetMinSizeRight
virtual void GetMinSizeRight(CSize& size) const;
Parametry
[v] velikost
Poznámky
CPaneContainer::GetNodeCount
int GetNodeCount() const;
Návratová hodnota
Poznámky
CPaneContainer::GetPaneDivider
const CPaneDivider* GetPaneDivider() const;
Návratová hodnota
Poznámky
CPaneContainer::GetParentPaneContainer
CPaneContainer* GetParentPaneContainer() const;
Návratová hodnota
Poznámky
CPaneContainer::GetRecentPaneDividerRect
CRect GetRecentPaneDividerRect() const;
Návratová hodnota
Poznámky
CPaneContainer::GetRecentPaneDividerStyle
DWORD GetRecentPaneDividerStyle() const;
Návratová hodnota
Poznámky
CPaneContainer::GetRecentPercent
int GetRecentPercent();
Návratová hodnota
Poznámky
CPaneContainer::GetRefCount
LONG GetRefCount();
Návratová hodnota
Poznámky
CPaneContainer::GetResizeStep
virtual int GetResizeStep() const;
Návratová hodnota
Poznámky
CPaneContainer::GetRightPane
const CDockablePane* GetRightPane() const;
Návratová hodnota
Poznámky
CPaneContainer::GetRightPaneContainer
const CPaneContainer* GetRightPaneContainer() const;
Návratová hodnota
Poznámky
CPaneContainer::GetTotalReferenceCount
int GetTotalReferenceCount() const;
Návratová hodnota
Poznámky
CPaneContainer::GetWindowRect
virtual void GetWindowRect(
CRect& rect,
BOOL bIgnoreVisibility = FALSE) const;
Parametry
[v] Rect
[v] bIgnoreVisibility
Poznámky
CPaneContainer::IsDisposed
BOOL IsDisposed() const;
Návratová hodnota
Poznámky
CPaneContainer::IsEmpty
BOOL IsEmpty() const;
Návratová hodnota
Poznámky
CPaneContainer::IsLeftPane
BOOL IsLeftPane(CDockablePane* pBar) const;
Parametry
[v] pBar
Návratová hodnota
Poznámky
CPaneContainer::IsLeftPaneContainer
BOOL IsLeftPaneContainer() const;
Návratová hodnota
Poznámky
CPaneContainer::IsLeftPartEmpty
BOOL IsLeftPartEmpty(BOOL bCheckVisibility = FALSE) const;
Parametry
[v] bCheckVisibility
Návratová hodnota
Poznámky
CPaneContainer::IsRightPartEmpty
BOOL IsRightPartEmpty(BOOL bCheckVisibility = FALSE) const;
Parametry
[v] bCheckVisibility
Návratová hodnota
Poznámky
CPaneContainer::IsVisible
BOOL IsVisible() const;
Návratová hodnota
Poznámky
CPaneContainer::Move
virtual void Move(CPoint ptNewLeftTop);
Parametry
[v] ptNewLeftTop
Poznámky
CPaneContainer::OnDeleteHidePane
void OnDeleteHidePane(
CDockablePane* pBar,
BOOL bHide);
Parametry
[v] pBar
[v] bHide
Poznámky
CPaneContainer::OnMoveInternalPaneDivider
virtual int OnMoveInternalPaneDivider(
int nOffset,
HDWP& hdwp);
Parametry
[v] nOffset
[v] hdwp
Návratová hodnota
Poznámky
CPaneContainer::OnShowPane
virtual void OnShowPane(
CDockablePane* pBar,
BOOL bShow);
Parametry
[v] pBar
[v] BShow
Poznámky
CPaneContainer::Release
DWORD Release();
Návratová hodnota
Poznámky
CPaneContainer::ReleaseEmptyPaneContainer
void ReleaseEmptyPaneContainer();
Poznámky
CPaneContainer::RemoveNonValidPanes
void RemoveNonValidPanes();
Poznámky
CPaneContainer::RemovePane
virtual void RemovePane(CDockablePane* pBar);
Parametry
[v] pBar
Poznámky
CPaneContainer::Resize
virtual void Resize(
CRect rect,
HDWP& hdwp,
BOOL bRedraw = FALSE);
Parametry
[v] Rect
[v] hdwp
[v] bRedraw
Poznámky
CPaneContainer::ResizePane
virtual void ResizePane(
int nOffset,
CPane* pBar,
CPaneContainer* pContainer,
BOOL bHorz,
BOOL bLeftBar,
HDWP& hdwp);
Parametry
[v] nOffset
[v] pBar
[v] pContainer
[v] bHorz
[v] bLeftBar
[v] hdwp
Poznámky
CPaneContainer::ResizePartOfPaneContainer
virtual void ResizePartOfPaneContainer(
int nOffset,
BOOL bLeftPart,
HDWP& hdwp);
Parametry
[v] nOffset
[v] bLeftPart
[v] hdwp
Poznámky
CPaneContainer::Serialize
void Serialize(CArchive& ar);
Parametry
[v] ar
Poznámky
CPaneContainer::SetPane
void SetPane(
CDockablePane* pBar,
BOOL bLeft);
Parametry
[v] pBar
[v] bLeft
Poznámky
CPaneContainer::SetPaneContainer
void SetPaneContainer(
CPaneContainer* pContainer,
BOOL bLeft);
Parametry
[v] pContainer
[v] bLeft
Poznámky
CPaneContainer::SetPaneDivider
void SetPaneDivider(CPaneDivider* pSlider);
Parametry
[v] pSlider
Poznámky
CPaneContainer::SetParentPaneContainer
void SetParentPaneContainer(CPaneContainer* p);
Parametry
[v] p
Poznámky
CPaneContainer::SetRecentPercent
void SetRecentPercent(int nRecentPercent);
Parametry
[v] nRecentPercent
Poznámky
CPaneContainer::SetUpByID
BOOL SetUpByID(
UINT nID,
CDockablePane* pBar);
Parametry
[v] Nid
[v] pBar
Návratová hodnota
Poznámky
CPaneContainer::StoreRecentDockSiteInfo
virtual void StoreRecentDockSiteInfo(CDockablePane* pBar);
Parametry
[v] pBar
Poznámky
CPaneContainer::StretchPaneContainer
virtual int StretchPaneContainer(
int nOffset,
BOOL bStretchHorz,
BOOL bLeftBar,
BOOL bMoveSlider,
HDWP& hdwp);
Parametry
[v] nOffset
[v] bStretchHorz
[v] bLeftBar
[v] bMoveSlider
[v] hdwp
Návratová hodnota
Poznámky
Viz také
Graf hierarchie
Třídy
CObject – třída
CPaneContainerManager – třída