hwnd
hwnd(): Integer;
The hwnd method of the Window class returns the Windows handle to a form or control.
The Windows environment identifies each form and control in an application by assigning it a handle (or hwnd). The Windows handle is useful with many Windows API calls that require hwnd as a parameter.
If a node can execute as a 32‑bit or a 64‑bit node, you should use the getWindowHandle method, which returns a MemoryAddress to ensure that the correct Windows handle is used.
The value of hwnd can change while a program is running, if property values that determine the style of a control are altered. For example, changing the scrollHorizontal property of a TextBox control requires that the text box be recreated in the new style, resulting in a new Windows handle being assigned.
To reduce the amount of memory being used by Web sessions, JADE creates a physical window only for Ocx, OleControl, ActiveXControl, and MultiMedia controls and a form only if an Ocx, OleControl, ActiveXControl, or MultiMedia control is created. In most cases when running an HTML thin client, the hwnd method returns a null value unless a physical window or a form is created for an Ocx, OleControl, ActiveXControl, or MultiMedia control.