Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CDC::SetTextColor
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  DWORD SetTextColor( DWORD crColor );
 
  Parameter   Description
 
  <crColor>   Specifies the color of the text as an RGB color value.
 
  Remarks
 
  Sets the text color to the specified color. The system will use this
  text color when writing text to this device context and also when
  converting bitmaps between color and monochrome device contexts.
 
  If the device cannot represent the specified color, the system sets the
  text color to the nearest physical color. The background color for a
  character is specified by SetBkColor and SetBkMode.
 
  Return Value
 
  An RGB value for the previous text color.
 
  See Also
 
  CDC::GetTextColor, CDC::BitBlt, CDC::SetBkColor, CDC::SetBkMode,
  ::SetTextColor
 
 
                                     -♦-