|  | Overview |  | 
|  | 
|  | Group |  | 
|  | 
|  | Quick Info 
 | Windows NT 
 | Yes 
 |  | Win95 
 | Yes 
 |  | Win32s 
 | Yes 
 |  | Import Library 
 | gdi32.lib 
 |  | Header File 
 | wingdi.h 
 |  | Unicode 
 | No 
 |  | Platform Notes 
 | Windows 95: int == 16 bits 
 | 
 |  | 
 
GetTextColor
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
			
				- Software for developers
				
- 
				Delphi Components
 .Net Components
 Software for Android Developers
- More information resources
				
- 
				MegaDetailed.Net
 Unix Manual Pages
 Delphi Examples