CBrush::CreatePatternBrush

This method initializes a brush with a pattern specified by a bitmap. The brush can subsequently be selected for any device context that supports raster operations.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 2.10 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL CreatePatternBrush( CBitmap* pBitmap );

See Also

CBrush::CreateBrushIndirect, CBrush::CreateDIBPatternBrush, CGdiObject::DeleteObject