摘要:
(1)在MFC中的多文档工程中得到当前文档CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd; CMDIChildWnd *pChild = (CMDIChildWnd *)pFrame->GetActiveFrame();CView *pV = (CView*)pChild->GetActiveView();CDocument* pDoc = pV->GetDocument();(2)在MFC中的多文档工程中遍历所有文档POSITION pos = theApp.GetFirstDocTempla 阅读全文
![](/skins/gray/images/separator.gif)