Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>gettextcolor()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetTextColor()
Return the current colour used when text is output
------------------------------------------------------------------------------

Syntax
GetTextColor( <hDC> )   -->   nColour

Arguments
<hDC> specifies the device context for a window.

Returns
If successful, the return value is the colour value
(corresponding to colours produced by the RGB() macro) used
when text is written to the device.

Description
This function returns the colour currently used when text is
output.

Example
hDC = GetDC( hWnd )
? "This is being written in colour", GetTextColor( hDC )
ReleaseDC( hDC )


See Also: GetBkColor() GetBValue() GetGValue() GetRValue() SetTextColor()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson