Can we displaying a form as a dialog?
-
Hi folks, This is probably a very basic question, but I can't figure out a good answer. I have CFormView-derived class that I display as an MDI child in my app. This works fine. However, under a specific circumstance, I need to display the same form from within a modal dialog, as a modal dialog, so that I can modify the data in the parent dialog after the child terminates. I can, of course, duplicate the code and create a new dialog to do this. But I am hoping there may be a way I can use the same code as in the form view so that I do not have to maintain two sets of code for the same screen. Can anyone point me to a way to do this? Or the other way round? That is, have the code in a modal dialog, but access it from a form view? BTW, I am still Thank you for your time.
-
Hi folks, This is probably a very basic question, but I can't figure out a good answer. I have CFormView-derived class that I display as an MDI child in my app. This works fine. However, under a specific circumstance, I need to display the same form from within a modal dialog, as a modal dialog, so that I can modify the data in the parent dialog after the child terminates. I can, of course, duplicate the code and create a new dialog to do this. But I am hoping there may be a way I can use the same code as in the form view so that I do not have to maintain two sets of code for the same screen. Can anyone point me to a way to do this? Or the other way round? That is, have the code in a modal dialog, but access it from a form view? BTW, I am still Thank you for your time.