CBrush Class

Encapsulates a Windows graphics device interface (GDI) brush.

class CBrush : public CGdiObject

Remarks

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.

For more information on CBrush, see Graphic Objects.

Requirements

Header: afxwin.h

See Also

Reference

CGdiObject Class

Hierarchy Chart

CBitmap Class

CDC Class

Other Resources

MFC Sample PROPDLG

CBrush Members