Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

WinGetParent

  • Last UpdatedJul 18, 2023
  • 1 minute read

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.

WinGetName, WinGetFocus

Examples

nParentWin=WinGetParent();
! Gets the number of the parent window for the currently selected Plant SCADA window


nRootWin=WinGetParent(WinGetFocus(), TRUE);
! Gets the number of the root window for the window that has keyboard focus

See Also

Window Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in