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


Sizes the active window. The origin of the window does not move.

Note: This function is not supported in the server process in a multiprocessor environment. Calling this function from the server process results in a hardware alarm being raised.


WinSize(Width, Height)

Width, Height:

The new width and height of the window, in pixels.

Return Value

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

Related Functions

WinMove, WinPos


! Sizes the active window to 200 pixels wide x 100 pixels high.

See Also

Window Functions