This member function initializes a brush with a style, color, and pattern specified in a LOGBRUSH structure. The brush can subsequently be selected as the current brush for any device context.
BOOL CreateBrushIndirect( LPLOGBRUSH lpLogBrush );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
The only values supported for the lbStyle field in the LOGBRUSH structure referenced by the lpLogBrush parameter are the following.
BS_SOLID
BS_DIBPATTERNPT
NULL_BRUSH
CBrush Overview, CBrush Member Functions, Graphical Drawing Object Classes, CBrush::CreateDIBPatternBrush, CBrush::CreateSolidBrush, CGdiObject::CreateStockObject, CGdiObject::DeleteObject