26 Oct
2004
26 Oct
'04
1:12 a.m.
William Poetra Yoga H <williampoetra(a)yahoo.com> 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; r.top = 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(a)winehq.org