Retrieves the window number of the specified window's parent or root window.
Syntax
WinGetParent([WinNum], [GetRoot])
WinNum
An optional parameter which specifies the window number of the child window. If no number is specified, it retrieves the window number of the currently selected window's parent or root window.
GetRoot
An optional parameter which determines whether to get the parent or root window. If false, it will retrieve the immediate parent window number (default). If true, it retrieves the root window number by walking the chain of parent windows.
Return Value
The window number of the parent or root window.
Related Functions
Examples
nParentWin=WinGetParent();
! Gets the number of the parent window for the currently selected Citect SCADA window
nRootWin=WinGetParent(WinGetFocus(), TRUE);
! Gets the number of the root window for the window that has keyboard focus
See Also
Published June 2018