다음을 통해 공유


CPaneFrameWnd::CalcExpectedDockedRect

Calculate the expected rectangle of a docked window.

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

Parameters

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

  • [in] ptMouse
    The mouse location.

  • [out] rectResult
    The calculated rectangle.

  • [out] bDrawTab
    If TRUE, draw a tab. If FALSE, do not draw a tab.

  • [out] ppTargetBar
    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: afxpaneframewnd.h

See Also

Reference

CPaneFrameWnd Class

Hierarchy Chart