I am currently developing my first GUI for Windows. I use MFC and Visual Studio 2008. The monitor that I developed for my program has 1680x1050 native resolution. If I compile and send my program to one of my employees to work on my computer (usually a laptop running 1024x768), my program will not fit on their screen.
I am trying to read how to create an MFC application so that it runs at all permissions, but I continue to find misleading information. Everywhere I look, it seems that DLU should resize your application for you, and that the only time you should run into problems is when you have an actual bitmap whose resolution you need to worry about. But if so, why will my program no longer be on my screen when I set my monitor to a lower resolution? Instead of my program “shrinking” to tackle the same amount of screen real estate that it uses at 1680x1050, it becomes huge and grainy.
The “obvious” solution here is to set my resolution to 1024x768 and redesign my program to fit on the screen. Except that I have already fastened everything in my dialogs as much as possible in order to try to configure my program on the screen with a resolution of 1024x768. My dialog fonts are installed in Microsoft Sans Serif 8, but when working with a resolution of 1024x768 they still seem huge (much more than 8 points).
I know there must be a way to get my program to maintain the same scaling ... right? Or is this the wrong approach to solving the problem? What is the correct / standard way to develop an MFC program so that it can work at many resolutions, say, 800x600 and higher?
source share