Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 859 Bytes

GetTextColor.md

File metadata and controls

42 lines (28 loc) · 859 Bytes

Home

Function name : GetTextColor

Group: Font and Text - Library: gdi32


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


Code examples:

Using Font and Text functions

Declaration:

COLORREF GetTextColor(
  HDC hdc   // handle to DC
);  

FoxPro declaration:

DECLARE INTEGER GetTextColor IN gdi32;
	INTEGER hdc  

Parameters:

hdc [in] Handle to the device context.


Return value:

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.