CFrameWndEx::PaneFromPoint

搜索每个窗格提供的点。

CBasePane* PaneFromPoint(
   CPoint point,
   int nSensitivity,
   bool bExactBar,
   CRuntimeClass* pRTCBarType
) const;
CBasePane* PaneFromPoint(
   CPoint point,
   int nSensitivity,
   DWORD& dwAlignment,
   CRuntimeClass* pRTCBarType
) const;

参数

  • [in] point
    要检查的点的屏幕坐标。

  • [in] nSensitivity
    通过此数量展开每个控件条边框,当搜索时点。

  • [in] bExactBar
    忽略 nSensitivity 参数的TRUE ;否则,FALSE。

  • [in] pRTCBarType
    如果不是 NULL,方法搜索一个指定类型的控件条。

  • [out] dwAlignment
    如果成功,则此参数包含是最接近指定点控件条边。 否则,此参数未初始化。

返回值

对包含 point的控制条的指针; NULL,如果未找到控件。

备注

此方法搜索在应用程序的所有控件条到 point。

使用 nSensitivity 增加搜索区域的大小。 使用 pRTCBarType 限制的控制条的类型方法搜索。

要求

标头: afxframewndex.h

请参见

参考

CFrameWndEx选件类

层次结构图