CBrush::CreateBrushIndirect

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.

At a Glance

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

Syntax

BOOL CreateBrushIndirect( LPLOGBRUSH lpLogBrush );

Remarks

Only the following values are supported for the lbStyle member in the LOGBRUSH structure referenced by the lpLogBrush parameter:

See Also

CBrush::CreateDIBPatternBrush, CBrush::CreateSolidBrush, CGdiObject::CreateStockObject, CGdiObject::DeleteObject