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.
hdc
Identifies the device context.
The return value specifies the current text color as a COLORREF value. It is CLR_INVALID if an error occurs.
ExtTextOut, TextOut