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.
Related Functions
Example
FUNCTION Activate_Pinned()
pinnedWindow = WinNewPinAt("Pinned", 1000, 300, 0);
WinGoto(pinnedWindow);
END
FUNCTION Deactivate_Pinned()
WinFreeEx(pinnedWindow);
END