 |
FillRect ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The FillRect function fills a rectangle by using the specified brush. This function includes the left and top borders, but excludes the right and bottom borders of the rectangle. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
int FillRect(
HDC hDC, // handle to DC
CONST RECT *lprc, // rectangle
HBRUSH hbr // handle to brush
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER FillRect IN user32;
INTEGER hDC,;
STRING @ rect,;
INTEGER hBrush
|
 |
 |
 |
| Parameters: |
 |
hDC
[in] Handle to the device context.
lprc
[in] Pointer to a RECT structure that contains the logical coordinates of the rectangle to be filled.
hbr
[in] Handle to the brush used to fill the rectangle. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
For a list of all the standard system colors, see GetSysColor.
When filling the specified rectangle, FillRect does not include the rectangle"s right and bottom sides. GDI fills a rectangle up to, but not including, the right column and bottom row, regardless of the current mapping mode.
|
 |
 |
| Word Index links for the FillRect : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-12-22 13:58:21 | | Modified: | 2002-12-22 14:00:06 | Visited in last 7 days: 30 |