CBrush::CreateSolidBrush
BOOLCreateSolidBrush(COLORREFcrColor**);**
Return Value
Nonzero if successful; otherwise 0.
Parameters
crColor
A structure that specifies the color of the brush. The color specifies an RGB value and can be constructed with the RGB macro in WINDOWS.H.
Remarks
Initializes a brush with a specified solid color. The brush can subsequently be selected as the current brush for any device context.
When an application has finished using the brush created by CreateSolidBrush, it should select the brush out of the device context.
Example
See the example for CBrush::CBrush.
CBrush Overview | Class Members | Hierarchy Chart
See Also CBrush::CreateBrushIndirect, CBrush::CreateDIBPatternBrush, CBrush::CreateHatchBrush, CBrush::CreatePatternBrush, , CGdiObject::DeleteObject