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

Syntax
SetBkMode( <hDC>, [ <nNewMode> ] )   -->   nOldMode

Arguments
<hDC> specifies the device context.

<nNewMode> is an optional integer specifying the new mode (see
below).

Returns
The returned value is an integer representing the
current/previous background mode (one of OPAQUE or
TRANSPARENT).

Description
This function can be used to change or query the current
background mode, which determines what GDI does with the
existing background colour(s) when outputting text, when there
are gaps in styled lines, or hatching in brushes.

The mode values are:

     Mode           means

    OPAQUE          the background is filled with the current background
                    colour  (this is the default)

    TRANSPARENT     the background is unchanged

Example
nOldMode = SetBkMode( hDC, TRANSPARENT )
     .
     .    // do some output
     .
// restore the mode
SetBkMode( hDC, nOldMode )


See Also: GetBkMode() GetDC() SetBkColor()

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