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

AVEVA™ Plant SCADA

WinFreeEx

  • Last UpdatedJul 18, 2023
  • 1 minute read

Removes the active display window and allows you to pass a Windows handle to the function for closing the window. Note that the last window (and any child windows owned by the last window) cannot be removed. You cannot call this function as an exit command or from a Cicode Object.

Syntax

WinFreeEx(Window)

Window:

The window number (returned from the WinNumber() function). Note that this is not the same as the window handle, returned from the WndFind() function.

Return Value

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

WinFree, WinNew, WinNewAt

Example

FUNCTION Activate_Pinned()

pinnedWindow = WinNewPinAt("Pinned", 1000, 300, 0);

WinGoto(pinnedWindow);

END

FUNCTION Deactivate_Pinned()

WinFreeEx(pinnedWindow);

END

See Also

Window Functions

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