Functions For Helping FillRect

Alexandre Julliard julliard at
Mon Oct 25 19:12:11 CDT 2004

William Poetra Yoga H <williampoetra at> writes:

> Um... OK, so the correct code is to add 1 to the sides, right? I mean, to draw
> the 50x75 rectangle we would do:
> r.left = 10;
> = 10;
> r.right = 61;
> r.bottom = 86;
> FillRect(hdc, &r, hbr);
> And for everything else when we have an x by y rectangle, we actually mean
> (x-1) by (y-1), is it OK to assume so? Am I correct?

No, FillRect behaves exactly like every other function in that
respect, you should never have to worry about adding/subtracting
one. Your example above is going to fill a 51x76 rectangle, not a
50x75 one.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list