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. Help on MDI application required

Help on MDI application required

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • E Offline
    E Offline
    eusto
    wrote on last edited by
    #1

    I want to display a dialog in a MDI application whenever there are no more documents(or dialogs) open. Is there a message that i can intercept when everything is closed?

    A 1 Reply Last reply
    0
    • E eusto

      I want to display a dialog in a MDI application whenever there are no more documents(or dialogs) open. Is there a message that i can intercept when everything is closed?

      A Offline
      A Offline
      Aamir Butt
      wrote on last edited by
      #2

      You can enumerate the number of child frames open at any give time by using EnumChildWindows. In your particular case, you can check on close of child window (the message is WM_CLOSE) that how many windows are open. If they are 0, u can show the dialog.

      "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

      E 1 Reply Last reply
      0
      • A Aamir Butt

        You can enumerate the number of child frames open at any give time by using EnumChildWindows. In your particular case, you can check on close of child window (the message is WM_CLOSE) that how many windows are open. If they are 0, u can show the dialog.

        "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

        E Offline
        E Offline
        eusto
        wrote on last edited by
        #3

        Thanks

        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