Hi Antonio how are you?
I found a interesting bug in screen coordinates function (at least in windows 11):
---cut---
GetWindowRect( hWnd, &rct );
wWidth = rct.right - rct.left;
wHeight = rct.bottom - rct.top;
---cut---
In windows 11 rct.right is 1374 and rct.left is -8, so 1374 - (-8) give 1382 and the correct is 1366.
I corrected it using abs() : wWidth = rct.right - abs(rct.left);
Please let me know if is this a bug or an expected behavior.
Regards,
Toninho.