Partager via


CDockingManager::CalcExpectedDockedRect

Calculates the expected rectangle of a docked window.

void CalcExpectedDockedRect(
   CWnd* pWnd,
   CPoint ptMouse,
   CRect& rectResult,
   BOOL& bDrawTab,
   CDockablePane** ppTargetBar
);

Parameters

  • [in] pWnd
    A pointer to the window to dock.

  • [in] ptMouse
    The mouse location.

  • [out] rectResult
    The calculated rectangle.

  • [in] bDrawTab
    TRUE to draw a tab; otherwise FALSE.

  • [out] ppTargetBar
    A pointer to a pointer to the target pane.

Remarks

This method calculates the rectangle that a window would occupy if a user dragged the window to the point specified by ptMouse and docked it there.

Requirements

Header: afxdockingmanager.h

See Also

Reference

CDockingManager Class

Hierarchy Chart