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