CTerminalEmulator::SetAttributes Method  
 
UINT SetAttributes(
  UINT nAttributes  
);

The SetAttributes method sets the current display attributes.

Parameters

nAttributes
An unsigned integer value which specifies the new display attributes. This may be one or more of the following values:
Constant Description
NVT_ATTRIBUTE_NORMAL Normal, default attributes.
NVT_ATTRIBUTE_REVERSE Foreground and background cell colors are reversed.
NVT_ATTRIBUTE_BOLD The character is displayed using a higher intensity color.
NVT_ATTRIBUTE_DIM The character is displayed using a lower intensity color.
NVT_ATTRIBUTE_UNDERLINE The character is displayed with an underline.
NVT_ATTRIBUTE_HIDDEN The character is stored in display memory, but not shown.
NVT_ATTRIBUTE_PROTECT The character is protected and cannot be cleared.

Return Value

If the method succeeds, the return value is the previous display attributes. If the method fails, the return value is 0xFFFFFFFF.

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

GetAttributes, GetCell