Gets the window handle for the current window. The window handle may be used by 'C' programs and CitectSCADA Wnd... functions. You may pass the windows handle to a 'C' program by using the DLL functions.
The window handle if successful, otherwise 0 (zero) is returned. Be aware that this is not the same as a CitectSCADA window number returned from the WinNumber() function.
DLLCall, WinNew, WndFind, WndShow
hWnd = WinGetWndHnd();
WinShow(hWnd,6); //iconize the window