CreateSolidBrush

  HBRUSH CreateSolidBrush(crColor)    
  COLORREF crColor; /* brush color-value */

The CreateSolidBrush function creates a logical brush that has the specified solid color.

Parameters

crColor

Specifies the color of the brush.

Return Value

The return value identifies a logical brush if the function is successful. Otherwise the return value is 0.

Comments

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.

See Also

CreateHatchBrush, CreatePatternBrush, CreateDIBPatternBrush, CreateDIBPatternBrushPt, DeleteObject SelectObject