CTerminalEmulator::SetForeColor Method  
 
BOOL SetForeColor(
  COLORREF rgbForeground  
);

The SetForeColor sets the foreground color used by the virtual display.

Parameters

rgbForeground
The foreground color specified as a 32-bit RGB value.

Return Value

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

Remarks

This method sets the foreground color for the normal and reverse text attributes. To set the foreground color for a specific attribute, use the SetColor method.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csnvtv12.lib

See Also