◄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. -♦-