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>settextcolor()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetTextColor()
Set the current colour used when text is output
------------------------------------------------------------------------------

Syntax
SetTextColor( <hDC>, <nNewColour> )   -->   nOldColour

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

<nNewColour> is the new colour value (corresponding to colours
produced by the RGB() macro) to be used when text is written
to the device.

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

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

Example
hDC = GetDC( hWnd )
? "Changing to blue..."
SetTextColor( hDC, RGB( 0, 0, 255 ) )
ReleaseDC( hWnd, hDC )


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

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