CreateSolidBrush

Syntax

HBRUSH CreateSolidBrush(crColor)

This function creates a logical brush that has the specified solid color. The brush can subsequently be selected as the current brush for any device.

Parameter Type/Description  
crColor COLORREF Specifies the color of the brush.  

Return Value

The return value identifies a logical brush if the function is successful. Otherwise, it is NULL.