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

AVEVA™ Plant SCADA

WndShow

  • Last UpdatedJul 18, 2023
  • 1 minute read

Sets the display mode of any window of any application.

Note: This function does not work with pinned windows.

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 Plant SCADA 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 code is returned.

WndFind

Example

WndShow(WndFind("Microsoft Excel"), 0);

! Hides the "Microsoft Excel" window.

See Also

Window Functions

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