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.
class CBrush
CGdiObject                                  Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Description
 
  The CBrush class encapsulates a Windows graphical design interface (GDI)
  brush. To use a CBrush object, construct a CBrush object and pass it to
  any CDC member function that requires a brush.
 
  Brushes can be solid, hatched, or patterned.
 
  See Also
 
  CBitmap, CDC
 
  Public Members
 
  Construction/Destruction
 
  CBrush   Constructs a CBrush object.
 
  Initialization
 
  CreateSolidBrush        Initializes a brush with the specified solid
                            color.
 
  CreateHatchBrush        Initializes a brush with the specified hatched
                            pattern and color.
 
  CreateBrushIndirect     Initializes a brush with the style, color, and
                            pattern specified in a LOGBRUSH structure.
 
  CreatePatternBrush      Initializes a brush with a pattern specified
                            by a bitmap.
 
  CreateDIBPatternBrush   Initializes a brush with a pattern specified
                            by a device-independent bitmap (DIB).
 
  Operations
 
  FromHandle   Returns a pointer to a CBrush object when given a handle
                 to a Windows HBRUSH object.
 
 
                                     -♦-