Compartilhar via


CBasePane::PaneFromPoint

Returns the pane that contains the given point.

CBasePane* PaneFromPoint(
   CPoint point,
   int nSensitivity,
   bool bExactBar = false,
   CRuntimeClass* pRTCBarType = NULL
) const;

Parameters

  • [in] point
    Specifies the point, in screen coordinates, to check.

  • [in] nSensitivity
    Increase the search area by this amount. A pane will satisfy the search criteria if the given point falls in the increased area.

  • [in] bExactBar
    TRUE to ignore the nSensitivity parameter; otherwise, FALSE.

  • [in] pRTCBarType
    If not NULL, the method searches only panes of the specified type.

Return Value

The CBasePane-derived object that contains the given point, or NULL if no pane was found.

Requirements

Header: afxbasepane.h

See Also

Reference

CBasePane Class

Hierarchy Chart