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. dialog

dialog

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
4 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.
  • D Offline
    D Offline
    Duc Quang
    wrote on last edited by
    #1

    Hello In MFC of VC++6.0, I write a dialog application. I have created a modeless dialog from main dialog. Could you please give me specific instructions to change size of modeless dialog when I get the figures up to date from main dialog?

    Infomation

    V M Steve EcholsS 3 Replies Last reply
    0
    • D Duc Quang

      Hello In MFC of VC++6.0, I write a dialog application. I have created a modeless dialog from main dialog. Could you please give me specific instructions to change size of modeless dialog when I get the figures up to date from main dialog?

      Infomation

      V Offline
      V Offline
      velayudhan_raj
      wrote on last edited by
      #2

      Hi, you can use MoveWindow function for changing the size. Regards Velayudhan

      1 Reply Last reply
      0
      • D Duc Quang

        Hello In MFC of VC++6.0, I write a dialog application. I have created a modeless dialog from main dialog. Could you please give me specific instructions to change size of modeless dialog when I get the figures up to date from main dialog?

        Infomation

        M Offline
        M Offline
        Mahesh Kulkarni
        wrote on last edited by
        #3

        You can also use the SetWindowPos API to change the window size run time.

        The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

        1 Reply Last reply
        0
        • D Duc Quang

          Hello In MFC of VC++6.0, I write a dialog application. I have created a modeless dialog from main dialog. Could you please give me specific instructions to change size of modeless dialog when I get the figures up to date from main dialog?

          Infomation

          Steve EcholsS Offline
          Steve EcholsS Offline
          Steve Echols
          wrote on last edited by
          #4

          If you're trying to set the size of the window based on the content, you can use AdjustWindowRect or AdjustWindowRectEx to calculate the size of the new window based on the desired client rectangle. These functions will convert your client rectangle into a window rectangle, which takes into account title bars, borders, etc. wich you then pass to the MoveWindow or SetWindowPos functions.


          - S 50 cups of coffee and you know it's on!

          • S
            50 cups of coffee and you know it's on!
            Code, follow, or get out of the way.
          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