Cicode Programming Reference > Cicode Function Categories > Window Functions Introduction > WndShow

WndShow

Sets the display mode of any window of any application.

Syntax

WndShow(hWnd, nMode)

hWnd:

The Windows handle of the window (returned from the WndFind() function). Be aware that this is not the same as a CitectSCADA window number returned from the WinNumber() function.

nMode:

The window mode:

0 - Hide the window.

1 - Activate the window in normal mode.

2 - Activate the window in an iconized state.

3 - Activate the window in a maximized state.

4 - Display the window in its previous state without activating it.

5 - Activate the window in its current state.

6 - Iconize the window.

7 - Display the window in an iconized state without activating it.

8 - Display the window in its current state without activating it.

9 - Activate the window in its previous state.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

WndFind

Example

WndShow(WndFind("Microsoft Excel"), 0);
! Hides the "Microsoft Excel" window.

See Also

Window Functions