HBRUSH CreateBrushIndirect(lpLogBrush)
This function creates a logical brush that has the style, color, and pattern given in the data structure pointed to by the lpLogBrush parameter. The brush can subsequently be selected as the current brush for any device.
Parameter | Type/Description |
lpLogBrush | LOGBRUSH FAR * Points to a LOGBRUSH data structure that contains information about the brush. |
The return value identifies a logical brush if the function is successful. Otherwise, it is NULL.
A brush created using a monochrome (one plane, one bit per pixel) bitmap is drawn using the current text and background colors. Pixels represented by a bit set to 0 will be drawn with the current text color, and pixels represented by a bit set to 1 will be drawn with the current background color.