The GetHWNDFromPoint function retrieves the window handle (HWND) of the top window at the specified position.
Syntax
Integer Global.GetHWNDFromPoint(
Integer x,
Integer y)
Integer x,
Integer y)
Parameters
| x | X-Axis position in screen pixels. | Required |
|---|---|---|
| y | Y-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
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