Discussion:
Calling Windows historians - GetBoundsRect
(too old to reply)
Richard Russell
2010-05-16 09:11:06 UTC
Permalink
Can anybody tell me in what version of Windows 'GetBoundsRect' was
first implemented? I'm pretty sure it was in Win16, but I'd like to
know exactly when it first appeared.

For those not familiar with it, GetBoundsRect is a very useful API.
It returns the rectangle that needs to be passed to InvalidateRect
after graphics are drawn, ultimately determining the rcPaint member of
PAINTSTRUCT. It thus frees the programmer from the chore of
calculating the rectangle himself. Even GDI+ drawing functions update
the bounding rectangle!

The reason for asking is that Wine, a well-known Open Source Windows
emulator (!), has never implemented GetBoundsRect. The longer it's
been in Windows, the stronger the argument that this omission is
unacceptable.

Richard.
http://www.rtrussell.co.uk/
Chris Hill
2010-05-18 12:58:29 UTC
Permalink
On Sun, 16 May 2010 02:11:06 -0700 (PDT), Richard Russell
Post by Richard Russell
Can anybody tell me in what version of Windows 'GetBoundsRect' was
first implemented? I'm pretty sure it was in Win16, but I'd like to
know exactly when it first appeared.
In a Win16 help file from VB 3.0, GetBoundsRect is marked as a Windows
3.1 function. (That documentation marks functions as one of 2.x, 3.0,
3.1) It's just the documentation, but hopefully that information is
useful to you.

Chris

Loading...