Function Reference


_WinAPI_FillRect

Fills a rectangle by using the specified brush

#include <WinAPIGdiDC.au3>
_WinAPI_FillRect ( $hDC, $tRECT, $hBrush )

Parameters

$hDC Handle to the device context
$tRECT a $tagRECT structure or pointer to it that contains the logical coordinates of the rectangle to be filled
$hBrush Handle to the brush used to fill the rectangle

Return Value

Success: True
Failure: False, call _WinAPI_GetLastError() to get extended error information

Remarks

The brush identified by the $hBrush parameter may be either a handle to a logical brush or a color value.
If specifying a handle to a logical brush, call _WinAPI_CreateSolidBrush().
Additionally, you may retrieve a handle to one of the stock brushes by using the _WinAPI_GetStockObject() function.
If specifying a color value for the $hBrush parameter, it must be one of the standard system colors (the value 1 must be added to the chosen color)

See Also

Search FillRect in MSDN Library.