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>setbkcolor()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetBkColor()
Set the current background colour
------------------------------------------------------------------------------

Syntax
SetBkColor( <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).

Returns
The return value is the old colour value (corresponding to
colours produced by the RGB() macro).

Description
This function changes the current background colour, which is
used for filling gaps in styled lines, hatching in brushes,
and the background when text is displayed.  The previous
colour is returned.

Example
nWhite = RGB( 255, 255, 255 )
SetBkColor( hDC, nWhite )


See Also: GetBkColor() GetBValue() GetDC() GetGValue() GetNearestColor() GetRValue() GetTextColor() RGB() SetTextColor()

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