IN a SDI, my document data actually is something like record-based data, I've to prompt user to enter a few information typically in Edit Control in a model/modeless dialog, when user press OK button, the data should be save onto a file. I want to take advantages of all functionalities provided by the application framework such as New, Open, Save and Save as menu options which are handled by CWinApp and CDocument.
My question are:
1. how to achieve that with a CDialog but not a CView? Is it possible? or any solution and suggestion?
2. When user select 'New' option from File menu item, can I override OnFileNew() to call a CDialog?
3. When user select 'Open' option from File menu item, once I got the selected file name, how to load the content of the file and pass it or show it in a CDialog derived class?
4. What if when user choose 'Save' option from File menu item?
Please help. Thanks.