OK I have a MDI application. My app doesn't bring up a MDI Child window at startup but it brings up a modeless dialog. The modeless dialog is created at startup from the CMainFrame class and has a button. When it is clicked I want to open up the MDI child window with view and document. I have never tried this before and is it a matter of getting document and then document template and then calling OpenDocumentFile(NULL);

I think I could probably get this to work eventually but it's giving me a headache then I wonder if it is right way or not. Thanks in advance.

jack