I use several sets of DocTemplates in SDI application,I need to use one set of DocTemplates at one time,and I can switch to another set of DocTemplates without quit the
application.But if I add all the templates in function
CWinApp :InitInstance(),all the views are constructed after
ProcessShellCommand(),so there are too many views kept in
memory,but if I do not add the templates in InitInstance(),
I can not tell the SDI application to open new document.