The GetTextColor function retrieves the current text color for the specified device context.
COLORREF GetTextColor(
HDC hdc |
// handle of device context |
); |
If the function succeeds, the return value is the current text color as a COLORREF value.
If the function fails, the return value is CLR_INVALID.
The text color defines the foreground color of characters drawn by using the TextOut or ExtTextOut function.