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. Making Desktop application flexible to monitor resolution

Making Desktop application flexible to monitor resolution

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 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.
  • R Offline
    R Offline
    Rakesh5
    wrote on last edited by
    #1

    Hi all, My application looks cool in 1280 by 1024 pixels.. but when i change the pixels(monitor resolution) to 1024 by 768 , layout is getting changed. my toolbar is disturbed and am not getting the whole tool bar present the window.. does any one know how to make a desktop application flexible?? for eg., ms word, excel are all flexible ones...right? like that i want my application to be flexible.. Thanks rakesh.

    E B 2 Replies Last reply
    0
    • R Rakesh5

      Hi all, My application looks cool in 1280 by 1024 pixels.. but when i change the pixels(monitor resolution) to 1024 by 768 , layout is getting changed. my toolbar is disturbed and am not getting the whole tool bar present the window.. does any one know how to make a desktop application flexible?? for eg., ms word, excel are all flexible ones...right? like that i want my application to be flexible.. Thanks rakesh.

      E Offline
      E Offline
      Eugen Podsypalnikov
      wrote on last edited by
      #2

      As I know there is no automation from the MFC side here... :) So you could check it explicitly, for example - by sizing of the frame - like this:

      if (pcBar->IsThereNoSpace()) {
      pcBar->ReDock();
      }

      R 1 Reply Last reply
      0
      • E Eugen Podsypalnikov

        As I know there is no automation from the MFC side here... :) So you could check it explicitly, for example - by sizing of the frame - like this:

        if (pcBar->IsThereNoSpace()) {
        pcBar->ReDock();
        }

        R Offline
        R Offline
        Rakesh5
        wrote on last edited by
        #3

        Hello sir, Are IsThereNoSpace() and ReDock() MFC Functions??? If not, can u please tell me the definition of the functions?? thanks, rakesh.

        E 1 Reply Last reply
        0
        • R Rakesh5

          Hello sir, Are IsThereNoSpace() and ReDock() MFC Functions??? If not, can u please tell me the definition of the functions?? thanks, rakesh.

          E Offline
          E Offline
          Eugen Podsypalnikov
          wrote on last edited by
          #4

          Hello Rakesh, no, sorry, there are function GetWindowRect(..) and nember functions of your ToolBar class only... :) Do you use CMFCToolBar in your application ? Eugen

          1 Reply Last reply
          0
          • R Rakesh5

            Hi all, My application looks cool in 1280 by 1024 pixels.. but when i change the pixels(monitor resolution) to 1024 by 768 , layout is getting changed. my toolbar is disturbed and am not getting the whole tool bar present the window.. does any one know how to make a desktop application flexible?? for eg., ms word, excel are all flexible ones...right? like that i want my application to be flexible.. Thanks rakesh.

            B Offline
            B Offline
            BonshatS
            wrote on last edited by
            #5

            These sites might be of some use : Writing High-DPI Win32 Applications[^] Tutorial: Writing High-DPI Win32 Applications[^]

            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