Partager via


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

Concepts

PROPDLG Sample: Demonstrates Property Sheet Support

CBrush Members

CGdiObject Class

Hierarchy Chart

CBitmap Class

CDC Class