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. User interface size and monitor resolution

User interface size and monitor resolution

Scheduled Pinned Locked Moved C / C++ / MFC
questiondesign
5 Posts 4 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I have to develop an user interface that must be shown in monitor with different resolutions (800 X 600 or 1024 X 768). How can I do to let this interface automatically resize in order to avoid the use of scroll bars (in case of small monitor size) and to avoid leaving free space (in case of big monitor size)??? Thanks a lot

    L A M 3 Replies Last reply
    0
    • L Lost User

      I have to develop an user interface that must be shown in monitor with different resolutions (800 X 600 or 1024 X 768). How can I do to let this interface automatically resize in order to avoid the use of scroll bars (in case of small monitor size) and to avoid leaving free space (in case of big monitor size)??? Thanks a lot

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      depends on the type of app ... am assuming a dialog app so you could maybe simply make two dialog box templates and load whichever one was reqd ... that way u could avoid all the icky movable layout stuff


      "... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
      sonork: 100.18128   8028finder.com

      1 Reply Last reply
      0
      • L Lost User

        I have to develop an user interface that must be shown in monitor with different resolutions (800 X 600 or 1024 X 768). How can I do to let this interface automatically resize in order to avoid the use of scroll bars (in case of small monitor size) and to avoid leaving free space (in case of big monitor size)??? Thanks a lot

        A Offline
        A Offline
        Allen Sun
        wrote on last edited by
        #3

        You can make your app to handle WM_DISPLAYCHANGE message and use GetSystemMetrics() to get the screen size. To resize your window, either you can maximize it, or in a dialog base app, use CResizeCtrl by Herbert Menke http://www.codeproject.com/dialog/resizectrl.asp[^] Hope this will help Allen

        L 1 Reply Last reply
        0
        • L Lost User

          I have to develop an user interface that must be shown in monitor with different resolutions (800 X 600 or 1024 X 768). How can I do to let this interface automatically resize in order to avoid the use of scroll bars (in case of small monitor size) and to avoid leaving free space (in case of big monitor size)??? Thanks a lot

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #4

          You can handle the WM_SIZE message and move your dialog controls to fit the space defined by GetClientRect. Michael :-) Time flies like an arrow. Fruit flies like a banana

          1 Reply Last reply
          0
          • A Allen Sun

            You can make your app to handle WM_DISPLAYCHANGE message and use GetSystemMetrics() to get the screen size. To resize your window, either you can maximize it, or in a dialog base app, use CResizeCtrl by Herbert Menke http://www.codeproject.com/dialog/resizectrl.asp[^] Hope this will help Allen

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Thanks a lot!! But what about if I have a MDI or a SDI app ??? Is it the same ???

            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