Support for various monitor resolutions

I have an MFC application with some bitmaps, dialogs and menus. Currently, it only supports one monitor resolution (1280x1024). I plan to add other monitor resolution support to it. To do this, I assume that I have to load different bitmaps with resolution, change the font size, etc. My question is, how are they handled in a typical Windows application? Do they use one raster image and stretch / contract it in accordance with the resolution of the monitor, or actually have a different set of raster images in the resource and dynamically load them depending on the resolution? Is there a standard solution for this?

+3
source share
5 answers

In the past, I used one large image and scaled accordingly.

Make sure the changes to the menu and the dialog are complex, but there are helper codes in CodeProject.

+2
source

I would say to use multiple resources with different permissions. Although you can scale icons dynamically, they are likely to look better if you resize them in the correct image editing program.

+1
source

. , .

, , .

+1

, Windows DPI. , .

+1

( , ). , , , . , . , -, , , , - , 9 . , , , ( ).

0

Source: https://habr.com/ru/post/1709511/


All Articles