CBrush::CBrush

Either of these constructors constructs a CBrush object. The default constructor constructs an uninitialized CBrush object that must be initialized before it can be used.

Syntax

CBrush()

CBrush(COLORREF crColor)

CBrush(CBitmap* pBitmap)

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

Windows CE does not support the following overloaded versions of the constructor.

CBrush::CBrush(int nIndex, COLORREF crColor)

See Also

CBrush Overview, CBrush Member Functions, Graphical Drawing Object Classes, CBrush::CreateSolidBrush, CBrush::CreateBrushIndirect, CBrush::CreateDIBPatternBrush, CGdiObject::CreateStockObject