GetTextColor  1YZBUJP 

The GetTextColor function retrieves the current text color for the specified device context.

COLORREF GetTextColor(

    HDC hdc

// handle of device context

   );

 

 

Parameters

hdc

Identifies the device context.

 

Return Values

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.

Remarks

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

See Also

ExtTextOut, SetTextColor, TextOut