Previous Next

BRUSHOBJ_ulGetBrushColor

The BRUSHOBJ_ulGetBrushColor function returns the RGB color of the specified solid brush.

ULONG
 BRUSHOBJ_ulGetBrushColor(
    IN BRUSHOBJ  *pbo
    );

Parameters

pbo
Pointer to the BRUSHOBJ structure whose color is being queried.

Return Value

BRUSHOBJ_ulGetBrushColor returns the RGB color of a solid brush. If the specified brush is not solid, this function returns -1.

Headers

Declared in winddi.h. Include winddi.h.

Comments

The color stored in the iSolidColor member of the BRUSHOBJ structure is an index value that has been translated to the target surface's palette. BRUSHOBJ_ulGetBrushColor allows the driver to query the original RGB color value of iSolidColor.

See Also

BRUSHOBJ