怎样在MDI程序里嵌入SDI特性?
emmai 2001-12-13 03:04:55 在MDI程序里,我想有一个SDI的文档模板!
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_BOARDTYPE,
RUNTIME_CLASS(CBoardDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CBoardView));
AddDocTemplate(pDocTemplate);
CSingleDocTemplate* pSingleDocTemplate:
pSingleDocTemplate = new CSingleDocTemplate(
IDR_BORDTYPE,
RUNTIME_CLASS(CBoardDoc),
RUNTIME_CLASS(CChildFrame),
RUNTIME_CLASS(CBoardView));
AddDocTemplate(pDocTemplate);
上面一个是系统的,下面一个是我加的,这样行吗?