Reference

CreateSolidBrush(3w)

NAME

CreateSolidBrush (GDI32.@)

SYNOPSIS

HBRUSH CreateSolidBrush
(
COLORREF color
)

DESCRIPTION

Create a logical brush consisting of a single colour.

PARAMS

color [In] Colour to make the solid brush.

RETURNS

A handle to the newly created brush, or a NULL handle if the brush cannot be created.

NOTES

- This function uses CreateBrushIndirect(3w) to create the brush.

- The brush returned should be freed by the caller using DeleteObject(3w) when it is no longer required.

IMPLEMENTATION

Declared in "wingdi.h".

Implemented in "dlls/gdi32/brush.c".

Debug channel "gdi".

History