共用方式為


CDockingManager::IsPointNearDockSite

Determines whether a specified point is near the dock site.

BOOL IsPointNearDockSite(
   CPoint point,
   DWORD& dwBarAlignment,
   BOOL& bOuterEdge
) const;

Parameters

  • [in] point
    The specified point.

  • [out] dwBarAlignment
    Specifies which edge the point is near. Possible values are CBRS_ALIGN_LEFT, CBRS_ALIGN_RIGHT, CBRS_ALIGN_TOP, and CBRS_ALIGN_BOTTOM.

  • [out] bOuterEdge
    TRUE if the point is near the outer border of the dock site; FALSE otherwise.

Return Value

TRUE if the point is near the dock site; otherwise FALSE.

Requirements

Header: afxdockingmanager.h

See Also

Reference

CDockingManager Class

Hierarchy Chart