CBrush

The CBrush class encapsulates the functionality of a Windows graphics device interface (GDI) brush, which is a bitmap that is used to fill the interior of closed shapes.

At a Glance

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

Remarks

MFC for Windows CE supports the following member functions differently than the standard MFC library does.

CBrush::CreateBrushIndirect

CBrush::CreateDIBPatternBrush

CBrush::CreateSysColorBrush

MFC for Windows CE only supports three of the four constructor functions for the CBrush class.

The LOGBRUSH structure, used in some of the initialization functions, has also been modified for Windows CE.

Windows CE does not currently support hatched brushes, so you cannot use the CreateHatchBrush initialization function.

See Also

CBrush Member Functions, CBrush Operators, Graphical Drawing Object Classes, CBitmap, CDC, LOGBRUSH