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.
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 |
CBrush()
CBrush(COLORREF crColor)
CBrush(CBitmap* pBitmap)
Windows CE does not support the following overloaded implementation of the constructor:
CBrush::CBrush(int nIndex, COLORREF crColor)
CBrush::CreateSolidBrush, CBrush::CreateBrushIndirect, CBrush::CreateDIBPatternBrush, CGdiObject::CreateStockObject