CDockablePane::DockToWindow

Docks one docking pane to another docking pane.

virtual BOOL DockToWindow(
    CDockablePane* pTargetWindow,
    DWORD dwAlignment,
    LPCRECT lpRect = NULL
);

Parameters

  • [in] [out] pTargetWindow
    Specifies the dockable pane to dock this pane to.

  • [in] dwAlignment
    Specifies the docking alignment for the pane. May be one of CBRS_ALIGN_LEFT, CBRS_ALIGN_TOP, CBRS_ALIGN_RIGHT, CBRS_ALIGN_BOTTOM or CBRS_ALIGN_ANY. (Defined in afxres.h.)

  • [in] lpRect
    Specifies the docking rectangle for the pane.

Return Value

TRUE if the pane was docked successfully; otherwise, FALSE.

Remarks

Call this method to dock one pane to another pane with the alignment specified by dwAlignment.

Requirements

Header: afxDockablePane.h

See Also

Reference

CDockablePane Class

Hierarchy Chart

Change History

Date

History

Reason

July 2010

Added values for dxAlignment parameter.

Customer feedback.