المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Opening new document type in existing frame window



C++ Programming
08-20-2009, 06:18 PM
Hi,

I have a MDI app with multiple document templates added in it. So there is a hierarchy of document, view and framewindow classes such that a view, document and framewnd classes are associated through a templates.

Now, there are date-wise files for each document type, i.e for a particular date, there are as many files as there are doc types. Opening a document opens it in a child window

What I want to implement is to add a drop down list to the child window which will list the other document types for that date. Selecting a different doc type from drop down should
1. Close the existing document open in the child window
2. Open the new doc of selected type for current date in the existing child window and NOT in a new child ********

I want to know if this is possible and how to go about it. I am getting confused because I am not able to figure out how this will work because I am trying to retain the old child window, which is of a particular framewnd class and open a totally new document type in this window, with which it is not associated through any doc template.
Hope I have explained my problem. Any inputs will be highly appreciated.
Thanks in advance.
Abhi