Microsoft Foundation Classes (mfc.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
CDC::FillRect
◄CDC► ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
void FillRect( LPRECT lpRect, CBrush* pBrush );
Parameter Description
<lpRect> Points to a ◄RECT► or ◄CRect► that contains the logical
coordinates of the rectangle to be filled. You can also pass
a CRect object for this parameter.
<pBrush> Identifies the brush used to fill the rectangle.
Remarks
Fills a given rectangle by using the specified brush. The function fills
the complete rectangle, including the left and top borders, but does not
fill the right and bottom borders.
When filling the specified rectangle, FillRect does not include the
rectangle's right and bottom sides. GDI fills a rectangle up to, but
does not include, the right column and bottom row, regardless of the
current mapping mode. FillRect compares the values of the top, bottom,
left, and right members of the specified rectangle. If bottom is less
than or equal to top, or if right is less than or equal to left, the
rectangle is not drawn.
See Also
◄CBrush►, ◄::FillRect►
-♦-