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

WinGetNextChild

Gets the window number of the next child in a child link. This number can be used with other functions to control the window.

Syntax

WinGetNextChild(Window)

Window:

The window number of the previous child in the child link.

Return Value

The window number associated with the next child in the child link. If a window does not exist, –1 is returned.

Related Functions

WinGetFirstChild, 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