GetHWNDFromPoint  Global

The GetHWNDFromPoint function retrieves the window handle (HWND) of the top window at the specified position.

Syntax

Integer Global.GetHWNDFromPoint(
     Integer x,
     Integer y)

Parameters

xX-Axis position in screen pixels.Required
yY-Axis position in screen pixels.Required

Return value

The GetHWNDFromPoint function returns

Example

Integer hWnd
Point pt new
Mouse mouse new
Dialog dlg

mouse.Get(pt)
hWnd = GetHWNDFromPoint(pt.x, pt.y)
if hWnd
    dlg = GetDialogFromHWND(hWnd)
    if dlg
    end
end
SECCIA Documentation - Copyright © 2001-2012 Sylvain Seccia