CBrush::CreateBrushIndirect

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.

Syntax

BOOL CreateBrushIndirect( LPLOGBRUSH lpLogBrush );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

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

See Also

CBrush Overview, CBrush Member Functions, Graphical Drawing Object Classes, CBrush::CreateDIBPatternBrush, CBrush::CreateSolidBrush, CGdiObject::CreateStockObject, CGdiObject::DeleteObject