mfc - How to design a dialog with 640*480 which can be used on 800*600 resolution? -


I should design a dialog with size 640 * 480, which can be used at 800 * 600 resolution.

Currently my dialogue size is 411 * 292, look, it looks great, but in fact I was asked to design a dialogue with the size given above. I tried it but this dialogue is bigger than my previous dialogue, size 411 * 292

When using 800 * 600 resolution or looks big in my dialogue and is not able to see some of my controls

This is the size of my dialogue, <0, 0 , 411, 292

Can anyone tell me how to design dialogue with 640 * 480 (which should not be large)). And how can I make my application fit in any resolution so that all the controls are displayed on the dialog.

Dialogs are enhanced in the Dialog units and dialogue unit scales on current UI settings and depend on system font Does. So if the user chooses a larger UI representation then your dialogue will also increase.

The best advice I can give is: the size is controlled by all of you. Choose a font that you like, set it in Control, calculate the status of the new control and use SetWindowPos / MoveWindow.

You only have full control in this case

You can also use a fixed font size in the dialog process, but excluding this font scale on the selected DPI for the screen ...

So the best advice I can give is: Scaling on the DPI / UI settings and show the dialog nf which the user also wants, so that what a normal dialogue will do ...


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -