Dim Rectan as RECT:
GetWindowRect(Hwnd, Rectan)
If Windows font size is set to 100% ==> (Rectan.Right-Rectan.Left)
and (Rectan.Bottom - Rectan.Top)
give the RIGHT size of a EXTERNAL window.
If the window size is 986x728, I get a size of 986x728. If I copy the window and paste it in Paint, I see a pixel size of 986x728. ALL RIGHT.
But if the Font size is set to 125%, for the same window (that obviously has to be a bit bigger) (Rectan.Right-Rectan.Left)
and (Rectan.Bottom - Rectan.Top)
get a size of 887x679 (smaller?), while if I copy and paste in Paint, the window I get has a pixel size of 1109x844 pixels.
WHY??? How to get the right size of 1109x844 pixels?