Modal vs Modeless Dialogs
Posted on 2001-06-27
I am using VC++6/MFC Win 98.
I would like to know if it is possible to make a Dialog Object which can act both modally & modelessly.
i.e Display the Object using both the following methods:
2. MyDialog = new CMyDialog(this,...)
If so, how do I detect which it is in the Dialog Constructor?
For modeless dialogs, I normally use the follwing code to create & show the dialog object:
Obviously, I don't need to execute the Create & ShowWindow commands if the dialog is Modal.
So, I need some way of detecting if Dialog is Modal or not.
I look forward to you answers.