在MDI程序中怎样实现Save All 如题. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 void CEditApp::OnFileSaveAll(){ // TODO: Add your command handler code here POSITION pos=m_pDocManager->GetFirstDocTemplatePosition(); while(pos!=NULL) { CDocTemplate* pTemplate=(CDocTemplate*)(m_pDocManager->GetNextDocTemplate(pos)); POSITION pos2=pTemplate->GetFirstDocPosition(); while(pos2!=NULL) { CDocument* doc=(CEditDoc*)pTemplate->GetNextDoc(pos2); if(!doc->DoSave(doc->GetPathName(), TRUE)) return; } }} VC++ 6.0 转 VS2005 求教:CSplitterWnd类与窗口分割相关的问题 请问怎么修改这个键值,谢谢! 我写一个类创建listCtrl 为什么在对话框初始化中调用却没有出现? 网关处理FTP的问题。 求救,关于管道连接的问题 动态记录集和表型记录集到底有什么区别各有什么好处? 客户机与服务器的问题,帮帮忙,给点意见! 那位大侠有过开发web平台的经验.(一定给分) iocp 服务端 对 多客户端 同时 传输文件 最简单问题求教!在线等! CTreeCtrl 如何得到被选中项 -- I'm on line
{
// TODO: Add your command handler code here
POSITION pos=m_pDocManager->GetFirstDocTemplatePosition();
while(pos!=NULL)
{
CDocTemplate* pTemplate=(CDocTemplate*)(m_pDocManager->GetNextDocTemplate(pos));
POSITION pos2=pTemplate->GetFirstDocPosition();
while(pos2!=NULL)
{
CDocument* doc=(CEditDoc*)pTemplate->GetNextDoc(pos2);
if(!doc->DoSave(doc->GetPathName(), TRUE)) return;
}
}
}