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. Modal and modeless dialogs

Modal and modeless dialogs

Scheduled Pinned Locked Moved C / C++ / MFC
questionlearning
3 Posts 2 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.
  • W Offline
    W Offline
    Wim Engberts
    wrote on last edited by
    #1

    Hi all, In one of my applications, the user gets a modal dialog box, in which he enters some information. In order to support him in diong that, I also display a modeless dialog with some additional information. (CDialog::Create (IDD_TEMPLATE, NULL)). The order is: first initialize the modeless dialog, then call the DoModal for the modal dialog. However, the user is now not able to move or resize the modeless dialog or to put it on top of the modal dialog to diaplsy all the information, until the modal dialog closes. It would of course be possible to also use a modeless dialog for the second dialog box, but then I need to loop for the user to push the OK (or Cancel) button, and I would possible need to do a whole lot of other things that Windows is now handeling for me. How can I create the modeless dialog so that it will act as if it were another application (in the sense that I can move it, put it on top of others, etc) Anyone any suggestions please? Thanks in advance, William

    D 1 Reply Last reply
    0
    • W Wim Engberts

      Hi all, In one of my applications, the user gets a modal dialog box, in which he enters some information. In order to support him in diong that, I also display a modeless dialog with some additional information. (CDialog::Create (IDD_TEMPLATE, NULL)). The order is: first initialize the modeless dialog, then call the DoModal for the modal dialog. However, the user is now not able to move or resize the modeless dialog or to put it on top of the modal dialog to diaplsy all the information, until the modal dialog closes. It would of course be possible to also use a modeless dialog for the second dialog box, but then I need to loop for the user to push the OK (or Cancel) button, and I would possible need to do a whole lot of other things that Windows is now handeling for me. How can I create the modeless dialog so that it will act as if it were another application (in the sense that I can move it, put it on top of others, etc) Anyone any suggestions please? Thanks in advance, William

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

      Create the modeless dialog within the modal dialog's OnInitDialog() method.


      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

      "Judge not by the eye but by the heart." - Native American Proverb

      W 1 Reply Last reply
      0
      • D David Crow

        Create the modeless dialog within the modal dialog's OnInitDialog() method.


        "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

        "Judge not by the eye but by the heart." - Native American Proverb

        W Offline
        W Offline
        Wim Engberts
        wrote on last edited by
        #3

        Thanks, I'll try that. Regards, WIlliam

        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