Jun-22-2022, 05:46 PM
(This post was last modified: Jun-22-2022, 05:46 PM by deanhystad.)
You might be looking at this problem backward. Why are you checking window size and resolution? You should only care about the size of the window and the size of the view. If the window is too small to show the view you need to provide a way to scroll the view around to see the parts. It shouldn't matter if the window is too small because the screen is small, or if magnification is set, or if the user just resized the window to make it small. Your application should gracefully rescale to some reasonably small size that fits on anything.