GetTextColor

  COLORREF GetTextColor(hdc)    
  HDC hdc; /* device-context handle */

The GetTextColor function retrieves the current text color. The text color defines the foreground color of characters drawn by using the TextOut or ExtTextOut functions.

Parameters

hdc

Identifies the device context.

Return Value

The return value specifies the current text color as a COLORREF value. It is CLR_INVALID if an error occurs.

See Also

ExtTextOut, TextOut