Bagikan melalui


CBasePane::DockPane

Docks a pane to another pane or to a frame window.

virtual BOOL DockPane(
   CBasePane* pDockBar,
   LPCRECT lpRect,
   AFX_DOCK_METHOD dockMethod 
);

Parameters

  • [in] pDockBar
    A pointer to another pane.

  • [in] lpRect
    Specifies the destination rectangle.

  • [in] dockMethod
    Specifies the docking method.

Return Value

TRUE if the control bar was docked successfully; otherwise, FALSE.

Remarks

Call this function to dock a pane to another pane or a dock bar (CDockSite Class) that is specified by pDockBar, or to a main frame if pDockBar is NULL.

dockMethod specifies how the pane is docked. See CPane::DockPane for a list of possible values.

Requirements

Header: afxbasepane.h

See Also

Reference

CBasePane Class

Hierarchy Chart

CPane::DockPane