79478345

Date: 2025-03-01 22:18:39
Score: 0.5
Natty:
Report link

Here is an improvement of @Matus' answer which eliminates the hard-coded constants. The hard-coded constants are not correct in all situations (monitor resolution, Windows versions, personalization settings).

This code answers the question about calculating the size (and position) of the maximized window. It leaves some things to be desired, but they are outside of the scope of the question:

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Matus'
  • Low reputation (1):
Posted by: Will Fred