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?
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.
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.
. , .
, , .
, Windows DPI. , .
( , ). , , , . , . , -, , , , - , 9 . , , , ( ).
Source: https://habr.com/ru/post/1709511/More articles:How do all of these web platforms provide a long login session that does not require the user to log in again and again? - phpUpload to mainframe using FTP - ftpHelp me figure out the following code, is it safe? - javaСистема уведомлений или предупреждений для .NET С# Component - c#Is PHP suitable for very large projects? Can it be safe for transactions? - phpIs it possible to perform mysql database transactions and rollbacks using php? - phpКлиентские лицензии SQL 2008 - как они применяются? - sql-server301 Перенаправление непосредственно в файле HTML - redirectHow to get into image manipulation programming? - c ++Implementing NSText delegate methods in PyObjc and Cocoa - pythonAll Articles