This member function retrieves a halftone brush. A halftone brush is a brush that shows foreground pixels alternately with background pixels to create a dithered pattern.
static CBrush* PASCAL GetHalftoneBrush ( CDC* pDC );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
In Windows CE, this member function 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 member function 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.
CDC Overview, CDC Member Functions, Graphical Drawing Classes, CBrush