CDC::GetHalftoneBrush

This method retrieves a halftone brush. A halftone brush is a brush that shows foreground pixels alternately with background pixels to create a dithered pattern.

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

static CBrush* PASCAL GetHalftoneBrush ( CDC* pDC );

Parameters

pDC
Pointer to a device context.

Remarks

In Windows CE, this method requires a pointer to a device context as an argument. (The CDC::GetHalftoneBrush in standard MFC does not take any arguments.) You have to call the CDC::GetHalftoneBrush method separately for each device context you use. Also, if the foreground or background colors of the device context change, call CDC::GetHalftoneBrush again, because a previously created halftone brush may no longer be displayed properly.

See Also

CBrush