WindowFromPoint

  HWND WindowFromPoint(Point)    
  POINT Point; /* structure with point */

This function identifies the window that contains the given point; Point must specify the screen coordinates of a point on the screen.

Parameters

Point

Specifies a POINT structure that defines the point to be checked.

Return Value

The return value identifies the window in which the point lies. It is NULL if no window exists at the given point.

See Also

ChildWindowFromPoint