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. Handling multiple display sizes and keep full screen

Handling multiple display sizes and keep full screen

Scheduled Pinned Locked Moved C / C++ / MFC
designtoolsquestion
4 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.
  • K Offline
    K Offline
    Kyle P
    wrote on last edited by
    #1

    We would like to create an application that will display messages in different areas in defined areas of the monitors including large LCDs and keep the dialog size full size for each monitor. From the size of monitor, 17,27,30,42 and so on, change the font size and display areas to meet that size without much changing the overall look of the application output. Is is best to design multiple dialogs within the application to meet the sizes and have the user pick those or can we have one dialog and have the aspect and such change based on size? Any tools would be appreciated if you know of any. Thank you

    N 1 Reply Last reply
    0
    • K Kyle P

      We would like to create an application that will display messages in different areas in defined areas of the monitors including large LCDs and keep the dialog size full size for each monitor. From the size of monitor, 17,27,30,42 and so on, change the font size and display areas to meet that size without much changing the overall look of the application output. Is is best to design multiple dialogs within the application to meet the sizes and have the user pick those or can we have one dialog and have the aspect and such change based on size? Any tools would be appreciated if you know of any. Thank you

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      Designing multiple dialogs,is a bad idea. U can change the size of the dialog and the controls inside them dynamically. For example if u want ur dialog to be displayed in the size of the Desktop..Write the code in the OnInitDialog() as follows. CRect WindowRect; GetDesktopWindow()->GetWindowRect( &WindowRect ); MoveWindow( &WindowRect ); nave

      A 1 Reply Last reply
      0
      • N Naveen

        Designing multiple dialogs,is a bad idea. U can change the size of the dialog and the controls inside them dynamically. For example if u want ur dialog to be displayed in the size of the Desktop..Write the code in the OnInitDialog() as follows. CRect WindowRect; GetDesktopWindow()->GetWindowRect( &WindowRect ); MoveWindow( &WindowRect ); nave

        A Offline
        A Offline
        anwer_skk
        wrote on last edited by
        #3

        Designing of multiple dialogs for different monitor size is not a good design. U can use GetSystemMetrics() function to get the screen size. Eg : int nWidth = GetSystemMetrics( SM_CXFULLSCREEN ) ; int nHeight = GetSystemMetrics( SM_CYFULLSCREEN ) ; MoveWindow(0,0,nWidth,nHeight);

        K 1 Reply Last reply
        0
        • A anwer_skk

          Designing of multiple dialogs for different monitor size is not a good design. U can use GetSystemMetrics() function to get the screen size. Eg : int nWidth = GetSystemMetrics( SM_CXFULLSCREEN ) ; int nHeight = GetSystemMetrics( SM_CYFULLSCREEN ) ; MoveWindow(0,0,nWidth,nHeight);

          K Offline
          K Offline
          Kyle P
          wrote on last edited by
          #4

          Thank you for responding. From here though, I need to change controls within the dialog to fit the new size and their corresponding text. If we move the output from a 19" to lets say a 42" display we want the fonts in the controls to be larger. We are trying to create a message display for our industry and to fit on multiple displays. How and/or tools to also change the size of the control and any font size based on this? thank you

          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