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. Changing the DialogSize

Changing the DialogSize

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicsquestionlearning
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.
  • P Offline
    P Offline
    p_1960
    wrote on last edited by
    #1

    Hi, I have a requirement like i need get system Resolution of the system and based on that i need to increase the size of the DialogBox and place the Bitmap(button) inside the DialogBox ..Bitmap can be obtained from a Resource.dll....(i need to use MFC) Please let me know how can i go with it....

    D C 2 Replies Last reply
    0
    • P p_1960

      Hi, I have a requirement like i need get system Resolution of the system and based on that i need to increase the size of the DialogBox and place the Bitmap(button) inside the DialogBox ..Bitmap can be obtained from a Resource.dll....(i need to use MFC) Please let me know how can i go with it....

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      So what are you wanting help with: 1) getting the resolution of the system, 2) increasing the size of the dialog box, or 3) placing the bitmap button inside the dialog box?

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      P 1 Reply Last reply
      0
      • D David Crow

        So what are you wanting help with: 1) getting the resolution of the system, 2) increasing the size of the dialog box, or 3) placing the bitmap button inside the dialog box?

        "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        P Offline
        P Offline
        p_1960
        wrote on last edited by
        #3

        if possible all the three....

        D 1 Reply Last reply
        0
        • P p_1960

          Hi, I have a requirement like i need get system Resolution of the system and based on that i need to increase the size of the DialogBox and place the Bitmap(button) inside the DialogBox ..Bitmap can be obtained from a Resource.dll....(i need to use MFC) Please let me know how can i go with it....

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #4

          see: GetSystemMetrics and MoveWindow/SetWindowPos

          image processing toolkits | batch image processing

          1 Reply Last reply
          0
          • P p_1960

            if possible all the three....

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            To get the screen resolution, use GetSystemMetrics() or SystemParametersInfo(). To resize a dialog box, see Chris' answer. For a bitmap button, see here.

            "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            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