Handling CDialogs in MFC app
Hello All,
I have a MFC app developed in VS 6.0
User can open multiple dialogs in this app. Is there a way of keeping track of how many dialogs are open at a given time?
Also, is there a way of getting the handle to each dialog from a central location?
Because the dialogs are opened from different parts of the app, i.e., different files its hard to keep track of all dialogs.
Any sample code will help.
Thanks in advance.
Re: Handling CDialogs in MFC app
Quote:
Originally Posted by
krisguy76
User can open multiple dialogs in this app. Is there a way of keeping track of how many dialogs are open at a given time?
Also, is there a way of getting the handle to each dialog from a central location?
There would be, of course in case you organized the way.
Quote:
Because the dialogs are opened from different parts of the app, i.e., different files its hard to keep track of all dialogs.
Nothing hard at all. You always can send some special message with dialog handle to your main window from your dialogs indicating dialog creation/destruction.