自己创建的(区别于wizard 自动代码创建的)CMultiDocTemplate 对象,如何让它不加入到 mfc template 数组中?
我为了创建自己特定的 frame/view 采用了一个 CMultiDocTemplate 全局对象。但是打开文档的时候 mfc template 数组中居然有两个template, 其中一个是我自己的。然后mfc把要打开的文件和这两个template匹配了一下,最后决定用我的,于是打开文档的时候他用错template了。
看来我的那个全局template加入到mfc 的 template 数组中了。
应该怎么做才不会加入到那里面呢?