COLORREF SetTextColor(hdc, crColor) | |||
HDC hdc; | |||
COLORREF crColor; |
The SetTextColor function sets the text color to the color specified by the crColor parameter, or to the nearest physical color if the device cannot represent the color specified by crColor. The text color is used to draw the face of each character written by the TextOut and ExtTextOut functions. The text color is also used when converting bitmaps from color to monochrome and vice versa.
hdc
Identifies the device context.
crColor
Specifies the color of the text.
The return value is a color reference for the previous text color. It is CLR_INVALID if an error occurred.
BitBlt, ExtTextOut, SetBkColor, StretchBlt, TextOut