Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CDC::SetBkMode
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int SetBkMode( int nBkMode );
 
  Parameter   Description
 
  <nBkMode>   Specifies the background mode. This parameter can be either
              of the following values:
 
              Value         Meaning
 
              OPAQUE        Background is filled with the current
                            background color before the text, hatched
                            brush, or pen is drawn.
 
              TRANSPARENT   Background is not changed before drawing.
 
  Remarks
 
  Sets the background mode. The background mode defines whether the system
  removes existing background colors on the drawing surface before drawing
  text, hatched brushes, or any pen style that is not a solid line.
 
  Return Value
 
  The previous background mode. It can be either OPAQUE or TRANSPARENT.
 
  See Also
 
  CDC::GetBkColor, CDC::GetBkMode, CDC::SetBkColor, ::SetBkMode
 
 
                                     -♦-