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.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

CBrush()

CBrush(COLORREF crColor)

CBrush(CBitmap* pBitmap)

Remarks

Windows CE does not support the following overloaded implementation of the constructor:

CBrush::CBrush(int nIndex, COLORREF crColor)

See Also

CBrush::CreateSolidBrush, CBrush::CreateBrushIndirect, CBrush::CreateDIBPatternBrush, CGdiObject::CreateStockObject