HBRUSH CreateSolidBrush(crColor) | |||||
COLORREF crColor; | /* brush color-value | */ |
The CreateSolidBrush function creates a logical brush that has the specified solid color.
crColor
Specifies the color of the brush.
The return value identifies a logical brush if the function is successful. Otherwise the return value is 0.
A solid brush is an 8-pixel by 8-pixel bitmap that Windows uses to paint the interior of filled objects.
Once an application has created a brush by calling CreateSolidBrush, it can select that brush into any device context by calling SelectObject.
CreateHatchBrush, CreatePatternBrush, CreateDIBPatternBrush, CreateDIBPatternBrushPt, DeleteObject SelectObject