A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z


The WindowFromPoint function retrieves the handle of the window that contains the specified point.

Declare Function WindowFromPoint Lib "user32" Alias "WindowFromPoint" (ByVal xPoint As Long, ByVal yPoint As Long) As Long

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later


Parameter Information
- Point
Specifies a POINT structure that defines the point to be checked.

Return Values
If the function succeeds, the return value is the handle of the window that contains the point. If no window exists at the given point, the return value is NULL.

Last update: 07 April 2006