Creating a Dialog box as a New Window
Posted on 2003-03-27
I'm still partially new with MFC, and I'm running into a problem with creating an "independent" dialog box. I'm curious if it's possible to create a dialog box as a new window that can rest on the task bar.
Let's say I have a simple app, that has a single CMainFrame with no views or documents. If, in the constructor of the main frame, I create a new dialog box, the dialog box opens as it's own window, completely separate of the frame. This is what I’m looking for, however, I'm curious if there is a way do this once the frame has been created.
I realize that I can create another frame, or wnd for that matter, but since I already have quite a bit of code written as a dialog box, this would save me time.
Also, I’ve tried calling the CWnd::Create method in the constructor of the derived CDialog box I’m creating, and keep getting error messages saying that there is no method that takes 6 parameters (but it shows up in Visual as one of the overloaded methods). Not sure if I can even do this with inheritance.