Поделиться через


CWnd::WindowFromPoint

Retrieves the window that contains the specified point; point must specify the screen coordinates of a point on the screen.

static CWnd* PASCAL WindowFromPoint(
   POINT point 
);

Параметры

  • point
    Specifies a CPoint object or POINT data structure that defines the point to be checked.

Возвращаемое значение

A pointer to the window object in which the point lies. It is NULL if no window exists at the given point. The returned pointer may be temporary and should not be stored for later use.

Заметки

WindowFromPoint does not retrieve a hidden or disabled window, even if the point is within the window. An application should use the ChildWindowFromPoint member function for a nonrestrictive search.

Требования

Header: afxwin.h

См. также

Основные понятия

CWnd Class

CWnd Members

Hierarchy Chart

WindowFromPoint

CWnd::ChildWindowFromPoint