Udostępnij za pośrednictwem


CPane::DockToFrameWindow

Docks a dockable pane to a frame.

virtual BOOL DockToFrameWindow(
   DWORD dwAlignment,
   LPCRECT lpRect = NULL,
   DWORD dwDockFlags = DT_DOCK_LAST,
   CBasePane* pRelativeBar = NULL,
   int nRelativeIndex = -1,
   BOOL bOuterEdge = FALSE
);

Parameters

  • [in] dwAlignment
    The side of the parent frame that you want to dock the pane to.

  • [in] lpRect
    The specified size.

  • [in] dwDockFlags
    Ignored.

  • [in] pRelativeBar
    Ignored.

  • [in] nRelativeIndex
    Ignored.

  • [in] bOuterEdge
    If TRUE and there are other dockable panes at the side that are specified by dwAlignment, the pane is docked outside the other panes, closer to the edge of the parent frame. If FALSE, the pane is docked closer to the center of the client area.

Return Value

FALSE if a pane divider (CPaneDivider Class) cannot be created; otherwise, TRUE.

Requirements

Header: afxpane.h

See Also

Reference

CPane Class

Hierarchy Chart