请问CDocTemplate::AddDocument()的作用~
深入浅出MFC第8章,345页里面有下面这段代码~
我查过MSDN,不过MSDN介绍得不详细~
这里AddDocument()的作用是什么?为什么要这么做?
CDocument* CDocTemplate::CreateNewDocument()
{
...
CDocument* pDocument=(CDocument*)m_pDocClass->CreateObject();
...
AddDocument(pDocument);
return pDocument;
}
我查过MSDN,不过MSDN介绍得不详细~
这里AddDocument()的作用是什么?为什么要这么做?
...全文



