[每日一码] 关闭所有的文档(包括当前文档)
// Close the other documentsAcApDocumentIterator *Iter
= acDocManager->newAcApDocumentIterator();
while(!Iter->done())
{
if (Iter->document()!=acDocManager->curDocument())
{
acDocManager->closeDocument(Iter->document());
}
Iter->step();
}
delete Iter;
// Now close the current document
::acDocManagerPtr()->appContextCloseDocument
(acDocManager->curDocument());
页:
[1]