hi,
I'm using vc++6.I have a mdi application. I need to implement 2 different views
for one document. I created the views. and added two templates as follows.
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_ZZZTYPE,
RUNTIME_CLASS(CZzzDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CZzzView));
AddDocTemplate(pDocTemplate);
pDocTemplate = new CMultiDocTemplate(
IDR_ZZZTYPE,
RUNTIME_CLASS(CZzzDoc),
RUNTIME_CLASS(CChildFrame),
RUNTIME_CLASS(CNewView));
AddDocTemplate(pDocTemplate);
Right. so far so good. Now this is what I want to do.
I want the CZzzView to load as default every time the application runs,
and the CNewView to load if the user selects to do so from the menu. how can I do this?
Any help is greatly appreciated. thank you.
regards
sumedha77
I'm using vc++6.I have a mdi application. I need to implement 2 different views
for one document. I created the views. and added two templates as follows.
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_ZZZTYPE,
RUNTIME_CLASS(CZzzDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CZzzView));
AddDocTemplate(pDocTemplate);
pDocTemplate = new CMultiDocTemplate(
IDR_ZZZTYPE,
RUNTIME_CLASS(CZzzDoc),
RUNTIME_CLASS(CChildFrame),
RUNTIME_CLASS(CNewView));
AddDocTemplate(pDocTemplate);
Right. so far so good. Now this is what I want to do.
I want the CZzzView to load as default every time the application runs,
and the CNewView to load if the user selects to do so from the menu. how can I do this?
Any help is greatly appreciated. thank you.
regards
sumedha77