Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC Application in Different Resolution

MFC Application in Different Resolution

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mehmetned
    wrote on last edited by
    #1

    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 :)

    H I 2 Replies Last reply
    0
    • M mehmetned

      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 :)

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      You can use of WM_SIZE and MoveWindow or SetWindowPos.

      1 Reply Last reply
      0
      • M mehmetned

        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 Offline
        I Offline
        Iain Clarke Warrior Programmer
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups