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. Howto know when a dialog ends

Howto know when a dialog ends

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 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.
  • G Offline
    G Offline
    GDavy
    wrote on last edited by
    #1

    I got a base-class derived from CDialog. There are multiple dialogs derived from that base-class. All dialogs that derive from that base class have to do some special handling while they are the top-most dialog. From the moment a new dialog is started from within the derived class , that handling has to stop, and start again when the new dialog ends. So my question: How can I know in the base-class dialog when a new dialog was started (by the derived class), and when that new dialog was ended? Greetings, Davy

    N 1 Reply Last reply
    0
    • G GDavy

      I got a base-class derived from CDialog. There are multiple dialogs derived from that base-class. All dialogs that derive from that base class have to do some special handling while they are the top-most dialog. From the moment a new dialog is started from within the derived class , that handling has to stop, and start again when the new dialog ends. So my question: How can I know in the base-class dialog when a new dialog was started (by the derived class), and when that new dialog was ended? Greetings, Davy

      N Offline
      N Offline
      Neagoe Gabriel
      wrote on last edited by
      #2

      Overwrite Create in base class...:| NG

      G 1 Reply Last reply
      0
      • N Neagoe Gabriel

        Overwrite Create in base class...:| NG

        G Offline
        G Offline
        GDavy
        wrote on last edited by
        #3

        Thx for the reply. But that won't do. The new dialog that is started isn't necessarily derived from that special base-class dialog...

        R 1 Reply Last reply
        0
        • G GDavy

          Thx for the reply. But that won't do. The new dialog that is started isn't necessarily derived from that special base-class dialog...

          R Offline
          R Offline
          Rage
          wrote on last edited by
          #4

          Simply send a custom message in the derived dialog to the base-class dialog. ~RaGE();

          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