zoukankan      html  css  js  c++  java
  • 文件默认路径保存批处理

    文件默认路径保存批处理

    BOOL CLeadShowMultiDocTemplate::SaveAllModified(void)
    {
     POSITION pos = GetFirstDocPosition();
     while (pos != NULL)
     {
      CDocument* pDoc = GetNextDoc(pos);
      // --------------------     old       --------------------------
      // The default implementation of this function displays a message box asking the user whether to save the changes to the document,
      // if any have been made. Override this function if your program requires a different prompting procedure. This is an advanced overridable.
      //
      //if (!pDoc->SaveModified())
      // return FALSE;
      // --------------------     new       --------------------------
      // for save all moidied do not need displays a message box asking the user whether to save the changes to the document,
      {
       if (!pDoc->IsModified())
        continue;        // ok to continue

       // get name/title of document
       // c by zcl for Doc path not scf file path,is LED Name, scf file path is changed to save in CScreen 成员变量
       CString PathName = pDoc->GetPathName();
       if (PathName.IsEmpty())
       {
        // get name based on caption
        PathName = GetDocDefaultPath(pDoc, theApp.GetProjectPath());
       }


       //if (!DoFileSave())
       pDoc->SetPathName(PathName);
       if (!pDoc->DoSave(PathName))
        return FALSE;       // don't continue
      }

     }
     return TRUE;
    }

  • 相关阅读:
    使用.sig签名验证文件
    ubuntu server 安装nextcloud12
    centos 搭建owncloud私有云
    archlinux错误:无法提交处理 (无效或已损坏的软件包)
    Oracle数据库-建库、建表空间,建用户
    JS中几种遍历方式
    常用的正则表达式
    JavaWeb中GET请求url传参中文乱码问题
    常用的ajax方式
    table中td内容过长自动换行
  • 原文地址:https://www.cnblogs.com/carl2380/p/1919412.html
Copyright © 2011-2022 走看看