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. OOP Question

OOP Question

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
5 Posts 5 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 lots of dialogs in my application and these dialogs are used with 1600 1200 resolution. Now, this application is ready to use but i want to run it with different resolutions. I wrote an different application(or function or class with function) to do this and it sets all of controls' size of a dialog as resolution but for only one dialog. How can I apply this solution for all my dialogs? For example May all of my dialogs inherit from my new class(is it a good solution) or what else? Please help.

    I H M L 4 Replies Last reply
    0
    • M mehmetned

      I have lots of dialogs in my application and these dialogs are used with 1600 1200 resolution. Now, this application is ready to use but i want to run it with different resolutions. I wrote an different application(or function or class with function) to do this and it sets all of controls' size of a dialog as resolution but for only one dialog. How can I apply this solution for all my dialogs? For example May all of my dialogs inherit from my new class(is it a good solution) or what else? Please help.

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      The solution is really up to you. How many dialogs do you have? There are several articles on codeproject dealing with resizable dialogs - they should give you a headstart. But they will require work for every dialog. I don't see any other way though - how a dialog stretches / shrinks will be very dependent on the job it's doing. ie, You may have a bos asking for some text, with an OK button. You want the text box to change in width, but not the button. Iain.

      Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

      1 Reply Last reply
      0
      • M mehmetned

        I have lots of dialogs in my application and these dialogs are used with 1600 1200 resolution. Now, this application is ready to use but i want to run it with different resolutions. I wrote an different application(or function or class with function) to do this and it sets all of controls' size of a dialog as resolution but for only one dialog. How can I apply this solution for all my dialogs? For example May all of my dialogs inherit from my new class(is it a good solution) or what else? Please help.

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

        I think you can use of WM_SIZE.

        1 Reply Last reply
        0
        • M mehmetned

          I have lots of dialogs in my application and these dialogs are used with 1600 1200 resolution. Now, this application is ready to use but i want to run it with different resolutions. I wrote an different application(or function or class with function) to do this and it sets all of controls' size of a dialog as resolution but for only one dialog. How can I apply this solution for all my dialogs? For example May all of my dialogs inherit from my new class(is it a good solution) or what else? Please help.

          M Offline
          M Offline
          Maximilien
          wrote on last edited by
          #4

          I found that early that it's a b-itch to try to find ways to automatically resize dialogs and move controls in a natural ways ( looking good in different resolution). I tend to make certain the dialogs work in the smallest resolution supported. BUT : If you find a way to way to generalize a behaviour to resize your dialogs that can work for any dialog in your application, then having a base class that does the resize is a good way to do it. Good luck.

          Maximilien Lincourt Your Head A Splode - Strong Bad

          1 Reply Last reply
          0
          • M mehmetned

            I have lots of dialogs in my application and these dialogs are used with 1600 1200 resolution. Now, this application is ready to use but i want to run it with different resolutions. I wrote an different application(or function or class with function) to do this and it sets all of controls' size of a dialog as resolution but for only one dialog. How can I apply this solution for all my dialogs? For example May all of my dialogs inherit from my new class(is it a good solution) or what else? Please help.

            L Offline
            L Offline
            led mike
            wrote on last edited by
            #5

            mehmetned wrote:

            I have lots of dialogs in my application

            So then that is the actual problem, however I suppose I should assume that for one or more reasons you are not interested in solving that problem. Therefore I would have you look at this.[^] I don't know if I ever tried to use it in Dialogs, probably not since Dialog based apps are lame. However I used it often in MFC View based applications and it works perfectly. It may or may not help you and your thousand dialog problem.

            led mike

            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