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. displayiing a Dialog over a Dialog

displayiing a Dialog over a Dialog

Scheduled Pinned Locked Moved C / C++ / MFC
6 Posts 6 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.
  • A Offline
    A Offline
    anilksingh
    wrote on last edited by
    #1

    I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.

    C L N _ G 5 Replies Last reply
    0
    • A anilksingh

      I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      If you only need to have your first dialog visible (without having to inject inputs), then you can simply use MoveWindow for the second dialog. If it needs to receive user inputs, then you need to use modeless dialogs. You can have a look at this tutorial[^]


      Cédric Moonen Software developer
      Charting control

      1 Reply Last reply
      0
      • A anilksingh

        I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.

        L Offline
        L Offline
        Laxman Auti
        wrote on last edited by
        #3

        anilksingh wrote:

        I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.

        Create Modeless dialogs Knock out 't' from can't, You can if you think you can :cool:

        1 Reply Last reply
        0
        • A anilksingh

          I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.

          _ Offline
          _ Offline
          _AnsHUMAN_
          wrote on last edited by
          #4

          Are you doing this on the click of OK button? What happens to the first dialog? Does the dialog close or something else? If you want both dialogs to show and respond to user inputs create Modeless dialog as A_Laxman and Cedric suggests. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_ -- modified at 8:19 Wednesday 14th June, 2006

          1 Reply Last reply
          0
          • A anilksingh

            I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.

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

            try like this if( MyDlg->DispDialog.m_hWnd == 0 ) MyDlg->DispDialog.Create( ... ) MyDlg->DispDialog.ShowWindow( SW_SHOW ); MyDlg->DispDialog.DoModal(); nave

            1 Reply Last reply
            0
            • A anilksingh

              I am displayiing a Dialog over a Dialog using MyDlg->DispDialog.DoModal(); only the second Dialog (DispDialog) is displayed. How i can display both the Dialog same time. The Size of second Dialog is more than first Dialog.

              G Offline
              G Offline
              Ganesh_T
              wrote on last edited by
              #6

              If you are displaying the dialog on click of another button the you can just do the DoModal() for another dialog and don't close the first one.. and If your dialog on top is covering first dialog then you can set the position of dialog by SetWindowPos. If you Need to handle both the dialogs at same time you need to create them modeless Cheers "Peace of mind through Technology" -- modified at 8:38 Wednesday 14th June, 2006

              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