The GetControlFromHWND function retrieves the control from its window handle (HWND).
Syntax
Control Global.GetControlFromHWND(
Integer hWnd)
Integer hWnd)
Parameters
| hWnd | Handle of the window. | Required |
|---|
Return value
The GetControlFromHWND function returns the control, otherwise null.
Example
Control ctrl
ctrl= GetControlFromHWND()
if ctrl
end
ctrl= GetControlFromHWND()
if ctrl
end