SetStdioWindowSize

int SetStdioWindowSize (int height, int width);

Purpose

Sets the height and width, in pixels, of the client area of the Standard Input/Output window, if the Standard I/O port is set to CVI_STDIO_WINDOW. The client area excludes the frame and the title bar.

Sets the height and width, in pixels, of the entire console window, if the Standard I/O port is set to HOST_SYSTEM_STDIO.

Parameters

Input
Name Type Description
height integer Height, in pixels, of the client area of the Standard Input/Output window, or the height, in pixels, of the entire console window.

Valid range = 0 to 16,000
width integer Width, in pixels, of the client area of the Standard Input/Output window, or the width, in pixels, of the entire console window.

Valid range = 0 to 16,000

Return Value

Name Type Description
status integer Indicates whether the function succeeded.

Code Description
0 Success.
-1 height is not within the valid range.
-2 width is not within the valid range.
-3 You must call this function from the main thread of your program.