This method 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.
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 |
BOOL CreateBrushIndirect( LPLOGBRUSH lpLogBrush );
Only the following values are supported for the lbStyle member in the LOGBRUSH structure referenced by the lpLogBrush parameter:
CBrush::CreateDIBPatternBrush, CBrush::CreateSolidBrush, CGdiObject::CreateStockObject, CGdiObject::DeleteObject