CTerminalEmulator::SetWindow Method  
 
BOOL SetWindow(
  HWND hWnd  
);

The SetWindow method sets the window used by the virtual display.

Parameters

hWnd
Handle to the window that will be used by the virtual display. This parameter cannot be NULL.

Return Value

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

Remarks

This method will clear the display and reset the current text attributes.

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

See Also

Create, GetDC, GetWindow, Reset, SetDC