https://helparchive.huntertur.net/document/108402
Q139217 - HOWTO: How to Get Smallest Bounding Rectangle for Drawing Functions
Windows maintains an accumulated bounding rectangle for each application. An application can retrieve this bounding rectangle by calling GetBoundsRect, and it...
smallest bounding rectanglehow tohowtogetdrawing