Share via


CDockingPanesRow, classe

Gère une liste de volets qui se trouvent sur la même ligne horizontale ou verticale (colonne) d'un site d'ancrage.

Pour plus d’informations, consultez le code source situé dans le dossier VC\atlmfc\src\mfc de votre installation de Visual Studio.

Syntaxe

class CDockingPanesRow : public CObject

Membres

Constructeurs publics

Nom Description
CDockingPanesRow::CDockingPanesRow Constructeur par défaut.

Méthodes publiques

Nom Description
CDockingPanesRow ::AddPane
CDockingPanesRow ::AddPaneFromRow
CDockingPanesRow ::ArrangePanes Dispose les volets dans une ligne en fonction des paramètres de marge et d'espacement spécifiés.
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

Notes

Les objets CDockingPanesRow sont créés en interne par des objets de site d'ancrage.

Exemple

L'exemple suivant montre comment obtenir un objet CDockingPanesRow à partir d'un objet CMFCAutoHideBar.

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

Hiérarchie d'héritage

CObject

CDockingPanesRow

Spécifications

En-tête : afxDockingPanesRow.h

CDockingPanesRow ::AddPane

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

Paramètres

[in] pControlBar

[in] dockMethod

[in] lpRect

[in] bAddLast

Notes

CDockingPanesRow ::AddPaneFromRow

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

Paramètres

[in] pControlBar

[in] dockMethod

Notes

CDockingPanesRow ::ArrangePanes

Organise les volets d’ancrage dans une ligne en fonction des paramètres de marge et d’espacement spécifiés.

virtual void ArrangePanes(
    int nMargin,
    int nSpacing);

Paramètres

nMargin
[in] Spécifie le décalage, en pixels, du premier volet à partir du coin supérieur gauche de la ligne.

nSpacing
[in] Spécifie l’espacement, en pixels, entre les volets.

Notes

Appelez cette méthode pour organiser les volets dans la ligne où ils seront ancrés. Après avoir appelé cette méthode, vous devez appeler CDockingPanesRow::FixupVirtualRects(FALSE, NULL).

CDockingPanesRow ::CalcFixedLayout

virtual CSize CalcFixedLayout(
    BOOL bStretch,
    BOOL bHorz);

Paramètres

[in] bStretch

[in] bHorz

Valeur de retour

Notes

CDockingPanesRow ::CDockingPanesRow

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

Paramètres

[in] pParentDockBar

[in] nOffset

[in] nHeight

Notes

CDockingPanesRow ::Create

virtual BOOL Create();

Valeur de retour

Notes

CDockingPanesRow ::ExpandStretchedPanes

void ExpandStretchedPanes();

Notes

CDockingPanesRow ::ExpandStretchedPanesRect

void ExpandStretchedPanesRect();

Notes

CDockingPanesRow ::FixupVirtualRects

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

Paramètres

[in] bMoveBackToVirtualRect

[in] pBarToExclude

Notes

CDockingPanesRow ::GetAvailableLength

virtual int GetAvailableLength(BOOL bUseVirtualRect = FALSE) const;

Paramètres

[in] bUseVirtualRect

Valeur de retour

Notes

CDockingPanesRow ::GetAvailableSpace

virtual void GetAvailableSpace(CRect& rect);

Paramètres

[in] Rect

Notes

CDockingPanesRow ::GetClientRect

void GetClientRect(CRect& rect) const;

Paramètres

[in] Rect

Notes

CDockingPanesRow ::GetDockSite

CDockSite* GetDockSite() const;

Valeur de retour

Notes

CDockingPanesRow ::GetExtraSpace

int GetExtraSpace() const;

Valeur de retour

Notes

CDockingPanesRow ::GetGroupFromPane

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

Paramètres

[in] pBar

[in] Lst

Notes

CDockingPanesRow ::GetID

int GetID() const;

Valeur de retour

Notes

CDockingPanesRow ::GetMaxPaneSize

int GetMaxPaneSize(BOOL bSkipHiddenBars = TRUE) const;

Paramètres

[in] bSkipHiddenBars

Valeur de retour

Notes

CDockingPanesRow ::GetPaneCount

int GetPaneCount() const;

Valeur de retour

Notes

CDockingPanesRow ::GetPaneList

const CObList& GetPaneList() const;

Valeur de retour

Notes

CDockingPanesRow ::GetRowAlignment

DWORD GetRowAlignment() const;

Valeur de retour

Notes

CDockingPanesRow ::GetRowHeight

int GetRowHeight() const;

Valeur de retour

Notes

CDockingPanesRow ::GetRowOffset

int GetRowOffset() const;

Valeur de retour

Notes

CDockingPanesRow ::GetVisibleCount

virtual int GetVisibleCount();

Valeur de retour

Notes

CDockingPanesRow ::GetWindowRect

void GetWindowRect(CRect& rect) const;

Paramètres

[in] Rect

Notes

CDockingPanesRow ::HasPane

BOOL HasPane(CBasePane* pControlBar);

Paramètres

[in] pControlBar

Valeur de retour

Notes

CDockingPanesRow ::IsEmpty

virtual BOOL IsEmpty() const;

Valeur de retour

Notes

CDockingPanesRow ::IsExclusiveRow

virtual BOOL IsExclusiveRow() const;

Valeur de retour

Notes

CDockingPanesRow ::IsHorizontal

bool IsHorizontal() const;

Valeur de retour

Notes

CDockingPanesRow ::IsVisible

virtual BOOL IsVisible() const;

Valeur de retour

Notes

CDockingPanesRow ::Move

virtual void Move(int nOffset);

Paramètres

[in] nOffset

Notes

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

Paramètres

[in] pControlBar

[in] ptOffset

[in] bSwapControlBars

[in] hdwp

[in] rectTarget

[in] nOffset

[in] bForward

[in] nAbsolutOffset

Notes

CDockingPanesRow ::OnResizePane

virtual void OnResizePane(CBasePane* pControlBar);

Paramètres

[in] pControlBar

Notes

CDockingPanesRow ::RedrawAll

void RedrawAll();

Notes

CDockingPanesRow ::RemovePane

virtual void RemovePane(CPane* pControlBar);

Paramètres

[in] pControlBar

Notes

CDockingPanesRow ::ReplacePane

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

Paramètres

[in] pBarOld

[in] pBarNew

Valeur de retour

Notes

CDockingPanesRow ::RepositionPanes

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

Paramètres

[in] rectNewParentBarArea

[in] nSide

[in] bExpand

[in] nOffset

Notes

CDockingPanesRow ::Resize

virtual int Resize(int nOffset);

Paramètres

[in] nOffset

Valeur de retour

Notes

CDockingPanesRow ::ResizeByPaneDivider

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

Paramètres

[in] Ignoré

Valeur de retour

Notes

CDockingPanesRow ::ScreenToClient

void ScreenToClient(CRect& rect) const;

Paramètres

[in] Rect

Notes

CDockingPanesRow ::SetExtra

void SetExtra(
    int nExtraSpace,
    AFX_ROW_ALIGNMENT rowExtraAlign);

Paramètres

[in] nExtraSpace

[in] rowExtraAlign

Notes

CDockingPanesRow ::ShowDockSiteRow

virtual void ShowDockSiteRow(
    BOOL bShow,
    BOOL bDelay);

Paramètres

[in] bShow

[in] bDelay

Notes

CDockingPanesRow ::ShowPane

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

Paramètres

[in] pControlBar

[in] bShow

[in] bDelay

Valeur de retour

Notes

CDockingPanesRow ::UpdateVisibleState

virtual void UpdateVisibleState(BOOL bDelay);

Paramètres

[in] bDelay

Notes

Voir aussi

Graphique hiérarchique
Classes
CObject, classe
CDockSite, classe
CPane, classe