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. How to resize application acoording to system resolution set?

How to resize application acoording to system resolution set?

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

    Hello all, I have developed one dialog based application. How to resize this application according to resolution set by the user for the system. The application contains seven propertysheets in wizard mode. Regards, Aj.

    M N 2 Replies Last reply
    0
    • J jadhav123

      Hello all, I have developed one dialog based application. How to resize this application according to resolution set by the user for the system. The application contains seven propertysheets in wizard mode. Regards, Aj.

      M Offline
      M Offline
      mails2dhana
      wrote on last edited by
      #2

      To get the resolution CRect rcWindow; GetDesktopWindow()->GetWindowRect( &rcWindow );

      Regard's Dhana

      N 1 Reply Last reply
      0
      • M mails2dhana

        To get the resolution CRect rcWindow; GetDesktopWindow()->GetWindowRect( &rcWindow );

        Regard's Dhana

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

        mails2dhana wrote:

        GetDesktopWindow()->GetWindowRect( &rcWindow );

        this will return only the dektop window. u have to move ur window after this CRect rcWindow; GetDesktopWindow()->GetWindowRect( &rcWindow ); Movewindow( &rcWindow );

        nave

        H 1 Reply Last reply
        0
        • N Naveen

          mails2dhana wrote:

          GetDesktopWindow()->GetWindowRect( &rcWindow );

          this will return only the dektop window. u have to move ur window after this CRect rcWindow; GetDesktopWindow()->GetWindowRect( &rcWindow ); Movewindow( &rcWindow );

          nave

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

          or SetWindowPos :)

          _**


          **_

          WhiteSky


          1 Reply Last reply
          0
          • J jadhav123

            Hello all, I have developed one dialog based application. How to resize this application according to resolution set by the user for the system. The application contains seven propertysheets in wizard mode. Regards, Aj.

            N Offline
            N Offline
            Naren Neelamegam
            wrote on last edited by
            #5

            check these articles... http://www.codeproject.com/dialog/easysize.asp[^] http://www.codeproject.com/dialog/resizabledialog.asp[^] you may get the solution... good luck..:)

            with regards, Naren Neelamegam

            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