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.
CBrush()
CBrush(COLORREF crColor)
CBrush(CBitmap* pBitmap)
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
Windows CE does not support the following overloaded versions of the constructor.
CBrush::CBrush(int nIndex, COLORREF crColor)
CBrush Overview, CBrush Member Functions, Graphical Drawing Object Classes, CBrush::CreateSolidBrush, CBrush::CreateBrushIndirect, CBrush::CreateDIBPatternBrush, CGdiObject::CreateStockObject