Function Reference


_WinAPI_SetDCBrushColor

Sets the current device context (DC) brush color to the specified color value

#include <WinAPIGdi.au3>
_WinAPI_SetDCBrushColor ( $hDC, $iRGB )

Parameters

$hDC Handle to the device context.
$iRGB The new brush color, in RGB.

Return Value

Success: The value that specifies the previous DC brush color, in RGB.
Failure: (-1).

Remarks

The function returns the previous $DC_BRUSH color, even if the stock brush $DC_BRUSH is not selected in the DC:
however, this will not be used in drawing operations until the stock $DC_BRUSH is selected in the DC.

See Also

Search SetDCBrushColor in MSDN Library.