CTerminalEmulator::Resize Method  
 
BOOL Resize(
  INT cxClient,  
  INT cyClient  
);

The Resize method resizes the virtual display to the specified width and height.

Parameters

cxClient
New width of the display window in pixels. If this value is zero, the width of the virtual display remains unchanged.
cyClient
New height of the display window in pixels. If this value is zero, the height of the virtual display remains unchanged.

Return Value

If the method succeeds, the return value is non-zero. If the method fails, it returns zero.

Remarks

This method resizes the virtual display and updates the scrolling information. Typically this method is called when the display window receives a WM_SIZE message, causing the virtual display to match the size of the window's client area.

This method will not change the size of the display window. To change the size of the display window, use the SetWindowPos method.

Requirements

Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csnvtv10.lib
Unicode: Implemented as Unicode and ANSI versions.

See Also

Create, GetRect, Refresh, Reset, Update