Fills a rectangle by using the specified brush
#include <WinAPIGdiDC.au3>
_WinAPI_FillRect ( $hDC, $tRECT, $hBrush )
$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 |
Success: | True |
Failure: | False, call _WinAPI_GetLastError() to get extended error information |
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)
Search FillRect in MSDN Library.