GetTextColor

Syntax

DWORD GetTextColor(hDC)

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

Parameter Type/Description  

hDC HDC Identifies the device context.  

Return Value

The return value specifies the current text color as an RGB color value.