分享方式:


CDockingPanesRow 類別

管理與停駐位置位於相同水平或垂直列 (欄) 之窗格的清單。

如需更多詳細資料,請參閱 Visual Studio 安裝位置下之 VC\atlmfc\src\mfc 資料夾中的原始程式碼。

語法

class CDockingPanesRow : public CObject

成員

公用建構函式

名稱 描述
CDockingPanesRow::CDockingPanesRow 預設建構函式。

公用方法

名稱 描述
CDockingPanesRow::AddPane
CDockingPanesRow::AddPaneFromRow
CDockingPanesRow::ArrangePanes 根據指定的邊界和間距參數排列資料列中的窗格。
CDockingPanesRow::CalcFixedLayout
CDockingPanesRow::Create
CDockingPanesRow::ExpandStretchedPanes
CDockingPanesRow::ExpandStretchedPanesRect
CDockingPanesRow::FixupVirtualRects
CDockingPanesRow::GetAvailableLength
CDockingPanesRow::GetAvailableSpace
CDockingPanesRow::GetClientRect
CDockingPanesRow::GetDockSite
CDockingPanesRow::GetExtraSpace
CDockingPanesRow::GetGroupFromPane
CDockingPanesRow::GetID
CDockingPanesRow::GetMaxPaneSize
CDockingPanesRow::GetPaneCount
CDockingPanesRow::GetPaneList
CDockingPanesRow::GetRowAlignment
CDockingPanesRow::GetRowHeight
CDockingPanesRow::GetRowOffset
CDockingPanesRow::GetVisibleCount
CDockingPanesRow::GetWindowRect
CDockingPanesRow::HasPane
CDockingPanesRow::IsEmpty
CDockingPanesRow::IsExclusiveRow
CDockingPanesRow::IsHorizontal
CDockingPanesRow::IsVisible
CDockingPanesRow::Move
CDockingPanesRow::MovePane
CDockingPanesRow::OnResizePane
CDockingPanesRow::RedrawAll
CDockingPanesRow::RemovePane
CDockingPanesRow::ReplacePane
CDockingPanesRow::RepositionPanes
CDockingPanesRow::Resize
CDockingPanesRow::ResizeByPaneDivider
CDockingPanesRow::ScreenToClient
CDockingPanesRow::SetExtra
CDockingPanesRow::ShowDockSiteRow
CDockingPanesRow::ShowPane
CDockingPanesRow::UpdateVisibleState

備註

CDockingPanesRow 物件會由固定站台物件在內部建立。

範例

下列範例示範如何從 CMFCAutoHideBar 物件取得 CDockingPanesRow 物件。

CMFCAutoHideBar *pParentBar = new CMFCAutoHideBar();
CDockingPanesRow *pParentRow = pParentBar->GetDockSiteRow();

繼承階層架構

CObject

CDockingPanesRow

需求

標頭: afxDockingPanesRow.h

CDockingPanesRow::AddPane

virtual void AddPane(
    CPane* pControlBar,
    AFX_DOCK_METHOD dockMethod,
    LPCRECT lpRect = NULL,
    BOOL bAddLast = FALSE);

參數

[in] pControlBar

[in] dockMethod

[in] lpRect

[in] bAddLast

備註

CDockingPanesRow::AddPaneFromRow

virtual void AddPaneFromRow(
    CPane* pControlBar,
    AFX_DOCK_METHOD dockMethod);

參數

[in] pControlBar

[in] dockMethod

備註

CDockingPanesRow::ArrangePanes

根據指定的邊界和間距參數,排列數據列中的停駐窗格。

virtual void ArrangePanes(
    int nMargin,
    int nSpacing);

參數

nMargin
[in]指定數據列左上角第一個窗格的位移,以像素為單位。

nSpacing
[in]指定窗格之間的間距,以像素為單位。

備註

呼叫這個方法,以在將停駐的數據列中排列窗格。 呼叫此方法之後,您必須呼叫 CDockingPanesRow::FixupVirtualRects(FALSE, NULL)

CDockingPanesRow::CalcFixedLayout

virtual CSize CalcFixedLayout(
    BOOL bStretch,
    BOOL bHorz);

參數

[in] bStretch

[in] bHorz

傳回值

備註

CDockingPanesRow::CDockingPanesRow

CDockingPanesRow(
    CDockSite* pParentDockBar,
    int nOffset,
    int nHeight);

參數

[in] pParentDockBar

[in] nOffset

[in] nHeight

備註

CDockingPanesRow::Create

virtual BOOL Create();

傳回值

備註

CDockingPanesRow::ExpandStretchedPanes

void ExpandStretchedPanes();

備註

CDockingPanesRow::ExpandStretchedPanesRect

void ExpandStretchedPanesRect();

備註

CDockingPanesRow::FixupVirtualRects

void FixupVirtualRects(
    bool bMoveBackToVirtualRect,
    CPane* pBarToExclude = NULL);

參數

[in] bMoveBackToVirtualRect

[in] pBarToExclude

備註

CDockingPanesRow::GetAvailableLength

virtual int GetAvailableLength(BOOL bUseVirtualRect = FALSE) const;

參數

[in] bUseVirtualRect

傳回值

備註

CDockingPanesRow::GetAvailableSpace

virtual void GetAvailableSpace(CRect& rect);

參數

[in] rect

備註

CDockingPanesRow::GetClientRect

void GetClientRect(CRect& rect) const;

參數

[in] rect

備註

CDockingPanesRow::GetDockSite

CDockSite* GetDockSite() const;

傳回值

備註

CDockingPanesRow::GetExtraSpace

int GetExtraSpace() const;

傳回值

備註

CDockingPanesRow::GetGroupFromPane

void GetGroupFromPane(
    CPane* pBar,
    CObList& lst);

參數

[in] pBar

[in] lst

備註

CDockingPanesRow::GetID

int GetID() const;

傳回值

備註

CDockingPanesRow::GetMaxPaneSize

int GetMaxPaneSize(BOOL bSkipHiddenBars = TRUE) const;

參數

[in] bSkipHiddenBars

傳回值

備註

CDockingPanesRow::GetPaneCount

int GetPaneCount() const;

傳回值

備註

CDockingPanesRow::GetPaneList

const CObList& GetPaneList() const;

傳回值

備註

CDockingPanesRow::GetRowAlignment

DWORD GetRowAlignment() const;

傳回值

備註

CDockingPanesRow::GetRowHeight

int GetRowHeight() const;

傳回值

備註

CDockingPanesRow::GetRowOffset

int GetRowOffset() const;

傳回值

備註

CDockingPanesRow::GetVisibleCount

virtual int GetVisibleCount();

傳回值

備註

CDockingPanesRow::GetWindowRect

void GetWindowRect(CRect& rect) const;

參數

[in] rect

備註

CDockingPanesRow::HasPane

BOOL HasPane(CBasePane* pControlBar);

參數

[in] pControlBar

傳回值

備註

CDockingPanesRow::IsEmpty

virtual BOOL IsEmpty() const;

傳回值

備註

CDockingPanesRow::IsExclusiveRow

virtual BOOL IsExclusiveRow() const;

傳回值

備註

CDockingPanesRow::IsHorizontal

bool IsHorizontal() const;

傳回值

備註

CDockingPanesRow::IsVisible

virtual BOOL IsVisible() const;

傳回值

備註

CDockingPanesRow::Move

virtual void Move(int nOffset);

參數

[in] nOffset

備註

CDockingPanesRow::MovePane

void MovePane(
    CPane* pControlBar,
    CPoint ptOffset,
    BOOL bSwapControlBars,
    HDWP& hdwp);

void MovePane(
    CPane* pControlBar,
    CRect rectTarget,
    HDWP& hdwp);

void MovePane(
    CPane* pControlBar,
    int nOffset,
    bool bForward,
    HDWP& hdwp);

void MovePane(
    CPane* pControlBar,
    int nAbsolutOffset,
    HDWP& hdwp);

參數

[in] pControlBar

[in] ptOffset

[in] bSwapControlBars

[in] hdwp

[in] rectTarget

[in] nOffset

[in] bForward

[in] nAbsolutOffset

備註

CDockingPanesRow::OnResizePane

virtual void OnResizePane(CBasePane* pControlBar);

參數

[in] pControlBar

備註

CDockingPanesRow::RedrawAll

void RedrawAll();

備註

CDockingPanesRow::RemovePane

virtual void RemovePane(CPane* pControlBar);

參數

[in] pControlBar

備註

CDockingPanesRow::ReplacePane

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

參數

[in] pBarOld

[in] pBarNew

傳回值

備註

CDockingPanesRow::RepositionPanes

virtual void RepositionPanes(
    CRect& rectNewParentBarArea,
    UINT nSide = (UINT)-1,
    BOOL bExpand = FALSE,
    int nOffset = 0);

參數

[in] rectNewParentBarArea

[in] nSide

[in] bExpand

[in] nOffset

備註

CDockingPanesRow::Resize

virtual int Resize(int nOffset);

參數

[in] nOffset

傳回值

備註

CDockingPanesRow::ResizeByPaneDivider

virtual int ResizeByPaneDivider(int /*ignored*/);

參數

[in] 忽視

傳回值

備註

CDockingPanesRow::ScreenToClient

void ScreenToClient(CRect& rect) const;

參數

[in] rect

備註

CDockingPanesRow::SetExtra

void SetExtra(
    int nExtraSpace,
    AFX_ROW_ALIGNMENT rowExtraAlign);

參數

[in] nExtraSpace

[in] rowExtraAlign

備註

CDockingPanesRow::ShowDockSiteRow

virtual void ShowDockSiteRow(
    BOOL bShow,
    BOOL bDelay);

參數

[in] bShow

[in] bDelay

備註

CDockingPanesRow::ShowPane

virtual BOOL ShowPane(
    CPane* pControlBar,
    BOOL bShow,
    BOOL bDelay = FALSE);

參數

[in] pControlBar

[in] bShow

[in] bDelay

傳回值

備註

CDockingPanesRow::UpdateVisibleState

virtual void UpdateVisibleState(BOOL bDelay);

參數

[in] bDelay

備註

另請參閱

階層架構圖表
類別
CObject 類別
CDockSite 類別
CPane 類別