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 question

dialog question

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpvisual-studio
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.
  • R Offline
    R Offline
    Rajveer
    wrote on last edited by
    #1

    When I create a new dialog class and display it with the DoModal() command, I can't interact with anything else on the screen until I close the dialog. How do I create a dialog that will stay up on the screen and allow me to still access everything else (menus, etc in my actual MDI, SDI application). Similar to the properties dialog in visual studio.

    P A N 3 Replies Last reply
    0
    • R Rajveer

      When I create a new dialog class and display it with the DoModal() command, I can't interact with anything else on the screen until I close the dialog. How do I create a dialog that will stay up on the screen and allow me to still access everything else (menus, etc in my actual MDI, SDI application). Similar to the properties dialog in visual studio.

      P Offline
      P Offline
      Paul M Watt
      wrote on last edited by
      #2

      A Modal dialog locks down the user interface until the user exits the dialog. When you call DoModal, you are creating a Modal dialog. You want to create a Modeless dialog. You can do this by declaring an instance of your dialog, calling the Create method, then calling the ShowWindow method and setting the dialog to visible. When you want this dialog to disappear, you can call ShowWindow again to hide the dialog.


      Build a man a fire, and he will be warm for a day
      Light a man on fire, and he will be warm for the rest of his life!

      1 Reply Last reply
      0
      • R Rajveer

        When I create a new dialog class and display it with the DoModal() command, I can't interact with anything else on the screen until I close the dialog. How do I create a dialog that will stay up on the screen and allow me to still access everything else (menus, etc in my actual MDI, SDI application). Similar to the properties dialog in visual studio.

        A Offline
        A Offline
        act_x
        wrote on last edited by
        #3

        try to create the dialog object using the create command(supplying the parent handle). This creates a Modalless dialog box :-D

        1 Reply Last reply
        0
        • R Rajveer

          When I create a new dialog class and display it with the DoModal() command, I can't interact with anything else on the screen until I close the dialog. How do I create a dialog that will stay up on the screen and allow me to still access everything else (menus, etc in my actual MDI, SDI application). Similar to the properties dialog in visual studio.

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          http://www.codeproject.com/useritems/gettingmodeless.asp Nish


          Check out last week's Code Project posting stats presentation from :- http://www.busterboy.org/codeproject/ Feel free to make your comments.

          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