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. a doubt about controls on the dialog

a doubt about controls on the dialog

Scheduled Pinned Locked Moved C / C++ / MFC
help
7 Posts 4 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
    keerthikaaa
    wrote on last edited by
    #1

    hai all i have a problem.when ever i resize the dialog,i would like to have the controls to be resized in respect to the size of the dialog

    R T H 3 Replies Last reply
    0
    • K keerthikaaa

      hai all i have a problem.when ever i resize the dialog,i would like to have the controls to be resized in respect to the size of the dialog

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      This[^] and This[^] will help you to do what you want. Regards, Rajesh R. Subramanian You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each.

      1 Reply Last reply
      0
      • K keerthikaaa

        hai all i have a problem.when ever i resize the dialog,i would like to have the controls to be resized in respect to the size of the dialog

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        keerthikaaa wrote:

        have a problem.when ever i resize the dialog,i would like to have the controls to be resized in respect to the size of the dialog

        Handle WM_SIZE message or OnSize(...) message in your Dialog Class

        1 Reply Last reply
        0
        • K keerthikaaa

          hai all i have a problem.when ever i resize the dialog,i would like to have the controls to be resized in respect to the size of the dialog

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

          Hi keerthikaaa, Do you want to keep previous size?

          K 1 Reply Last reply
          0
          • H Hamid Taebi

            Hi keerthikaaa, Do you want to keep previous size?

            K Offline
            K Offline
            keerthikaaa
            wrote on last edited by
            #5

            hai when ever i resize the dialog,the controls which are placed on that are to be resized so that no change in the appearence of the dialog will be there. otherwise the controls will be placed at one side of the dialog and the rest of the diaolgs space looks empty which doesnt give a nice look:)

            H 1 Reply Last reply
            0
            • K keerthikaaa

              hai when ever i resize the dialog,the controls which are placed on that are to be resized so that no change in the appearence of the dialog will be there. otherwise the controls will be placed at one side of the dialog and the rest of the diaolgs space looks empty which doesnt give a nice look:)

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

              keerthikaaa, oh yes, well (ThatsAlok wrote WM_SIZE) yes this is a way. you can declare this event and then use variable of controls with movewinodw in function

              T 1 Reply Last reply
              0
              • H Hamid Taebi

                keerthikaaa, oh yes, well (ThatsAlok wrote WM_SIZE) yes this is a way. you can declare this event and then use variable of controls with movewinodw in function

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #7

                WhiteSky wrote:

                with movewinodw in function

                and SetwindowPos too:)

                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