MFC Application in Different Resolution
-
I have a mfc application that i run with different resolution. So i want to change size of controls as resolutions rate. When the resolution increases, size of controls and font must increase with same rate between new and old resolution. please tell me how to make it simply. Thanks :)
-
I have a mfc application that i run with different resolution. So i want to change size of controls as resolutions rate. When the resolution increases, size of controls and font must increase with same rate between new and old resolution. please tell me how to make it simply. Thanks :)
You can use of WM_SIZE and MoveWindow or SetWindowPos.
-
I have a mfc application that i run with different resolution. So i want to change size of controls as resolutions rate. When the resolution increases, size of controls and font must increase with same rate between new and old resolution. please tell me how to make it simply. Thanks :)
There are loads of articles on codeproject that relate to this. They're aimed at windows that change size as the user drags the edges with the mouse, but that's no different in principle. If you mean the dpi changes, then you can MapDialogRect to make your app like a dialog box, and change size proportional to DPI. Iain.
Iain Clarke appears because CPallini still cares.