Partager via


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 dock bar (CDockSite Class) specified by pDockBar, or to a main frame if pDockBar is NULL.

dockMethod specifies how the pane is docked. For a list of possible values see the AFX_DOCK_METHOD enumerated type.

Requirements

Header: afxbasepane.h

See Also

Reference

CBasePane Class

Hierarchy Chart