Cicode Programming Reference > Cicode Function Categories > Window Functions > WinGetFirstChild

WinGetFirstChild

Gets the window number of the first child of a parent window. This number can be used with other functions to control the window.

Syntax

WinGetFirstChild(Window)

Window:

The window number of the parent window.

Return Value

The window number associated with the first child of the specified parent window. If a child window does not exist, –1 is returned.

Related Functions

WinGetNextChild, WinNew, WinNewAt, WinNumber

Example

...
// Get the active window number
iParentWindowNum = WinNumber();
iFirstChild = WinGetFirstChild(iParentWindowNum);
iSecondChild = WinGetNextChild(iFirstChild); iThirdChild = WinGetNextChild(iSecondChild); ...

See Also

Window Functions

Published June 2018