This function creates a logical brush that has the specified solid color.
At a Glance
Header file: | Wingdi.h |
Windows CE versions: | 1.0 and later |
Syntax
HBRUSH CreateSolidBrush( COLORREF crColor);
Parameters
crColor
[in] Specifies the color of the brush.
Return Values
A handle that identifies a logical brush indicates success. NULL indicates failure. To get extended error information, call GetLastError.
Remarks
A solid brush is a bitmap that the system uses to paint the interiors of filled shapes.
After an application creates a brush by calling CreateSolidBrush, it can select that brush into any device context by calling the SelectObject function.
Windows CE does not support dithered brushes.