WinGetWndHnd
- Last UpdatedJul 18, 2023
- 1 minute read
Gets the window handle for the current window. The window handle may be used by 'C' programs and Plant SCADA Wnd... functions. You may pass the windows handle to a 'C' program by using the DLL functions.
Syntax
WinGetWndHnd()
Return Value
The window handle if successful, otherwise 0 (zero) is returned. Be aware that this is not the same as a Plant SCADA window number returned from the WinNumber() function.
Related Functions
DLLCall, WinNew, WndFind, WndShow
Example
INT hWnd;
hWnd = WinGetWndHnd();
WinShow(hWnd,6); //iconize the window