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 Box Question

Dialog Box Question

Scheduled Pinned Locked Moved C / C++ / MFC
questionannouncement
4 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.
  • P Offline
    P Offline
    Paddy
    wrote on last edited by
    #1

    When a modal dialog box is closed using EndDialog does it's parent window recieve a message to notify it that the dialog has closed? I want to update some info in my status bar as soon as the dialog is closed. Thanks in advance, Paddy

    N 1 Reply Last reply
    0
    • P Paddy

      When a modal dialog box is closed using EndDialog does it's parent window recieve a message to notify it that the dialog has closed? I want to update some info in my status bar as soon as the dialog is closed. Thanks in advance, Paddy

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

      If this is MFC, then DoModal returns only when EndDialog is called. If this is a non-MFC modal dialog you created by calling DialogBox, then DialogBox won't return till EndDialog is called. Nish


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      P 1 Reply Last reply
      0
      • N Nish Nishant

        If this is MFC, then DoModal returns only when EndDialog is called. If this is a non-MFC modal dialog you created by calling DialogBox, then DialogBox won't return till EndDialog is called. Nish


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        P Offline
        P Offline
        Paddy
        wrote on last edited by
        #3

        Thanks for the help. It's non-MFC I'm using. Does this mean that my main window can't do anything until EndDialog is called? Paddy

        N 1 Reply Last reply
        0
        • P Paddy

          Thanks for the help. It's non-MFC I'm using. Does this mean that my main window can't do anything until EndDialog is called? Paddy

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

          Paddy wrote: It's non-MFC I'm using. Does this mean that my main window can't do anything until EndDialog is called? Yup, your main window will be frozen. An alternative is to use a modeless dialog, or use threads. Nish


          Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

          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