WindowFromPhysicalPoint function

Retrieves a handle to the window that contains the specified physical point.

Syntax

HWND WindowFromPhysicalPoint(
  POINT Point
);

Parameters

Point

Type: POINT

The physical coordinates of the point.

Return Value

Type: Type: HWND

A handle to the window that contains the given physical point. If no window exists at the point, this value is NULL.

Remarks

The WindowFromPhysicalPoint function does not retrieve a handle to a hidden or disabled window, even if the point is within the window.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll

See Also

ChildWindowFromPoint

Conceptual

Other Resources

POINT

Reference

WindowFromDC

WindowFromPoint

Windows