Home > Software engineering >  How do I don't let the MFC dialog box changes over the resolution
How do I don't let the MFC dialog box changes over the resolution

Time:09-23


Want to add controls in accordance with the above method, while on a preview window stretching themselves... Haven't tried many methods on the net, can find a solution completely, bosses, please comment, this problem has been troubled for a long time

CodePudding user response:

Under normal circumstances change resolution, window won't become bigger, see if the code has adjusted.
In addition, after changing resolution, change DPI?
See above, it seems that you than with the window in the RC and the actual window.

CodePudding user response:

reference 1st floor jinan200711 response:
normally change resolution, window won't become bigger, see if the code has adjusted.
In addition, after changing resolution, change DPI?
See above, it seems that you than with the window in the RC and the actual window.


I am direct with MFC directly pull control toolbox, no other code window control for operation

CodePudding user response:

The problem of Q me,

CodePudding user response:

Get the screen size, and then set the window of the high and wide according to the proportion, such as high is 1/2 of the screen, the screen high by 0.5, width is 3/4, wide by 0.75 of the screen,
The main function of software to maximize and minimize value is set to this value,

CodePudding user response:

Are all controls need? Because the Edit control to hide behind images on the corresponding numerical values

CodePudding user response:

Take a look at your base class of frame is what

CodePudding user response:

Refer to the High DPI desktop application development on Windows
https://msdn.microsoft.com/library/windows/desktop/mt843498 (v=versus 85). Aspx (d=robot)

CodePudding user response:

You this picture is drawing on your own, or use the picture display control,

CodePudding user response:

Here to 100%, it should be no problem,
  • Related