WindowFromPoint

Syntax

HWND WindowFromPoint(Point)

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

Parameter Type/Description  

Point POINT Specifies a POINT data 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.