文件名称:MruFileTest
介绍说明--下载内容均来自于网络,请自行研究使用
VC++的MFC对最近文件进行了包装,它使用户无需编写任何代码就可实现最近文件菜单。但这种方法也有缺陷:
①用户程序必须使用文档、视图结构,只能利用它提供的文档打开和保存文件,如果你使用自己编写的函数打开和保存文件,绕过了它的文档,则最近文件将无法使用。
②这种最近文件保存在注册表中,不易清除,容易形成注册表中垃圾,也没有提供用户清除最近文件的权利,不利于用户隐私的保护。
用ini文件实现最近文件可以解决上述问题,而且用编程控制MRU更灵活,可以提供更多功能-VC++ the MFC recent documents and packaging, which allows users without writing any code can achieve the File menu. This method is also flawed: ① user program must use the document view architecture, only use it to provide documents to open and save files, if you are using to write your own functions to open and save files, bypassing the document, the recent The file will not be used. ② this file is saved in the registry, difficult to remove, easy formation of the garbage in the registry and did not provide the user the right to clear recent files, is not conducive to the protection of user privacy. Ini files recent documents can solve the above problems, and more flexible programming control MRU can provide more functionality
①用户程序必须使用文档、视图结构,只能利用它提供的文档打开和保存文件,如果你使用自己编写的函数打开和保存文件,绕过了它的文档,则最近文件将无法使用。
②这种最近文件保存在注册表中,不易清除,容易形成注册表中垃圾,也没有提供用户清除最近文件的权利,不利于用户隐私的保护。
用ini文件实现最近文件可以解决上述问题,而且用编程控制MRU更灵活,可以提供更多功能-VC++ the MFC recent documents and packaging, which allows users without writing any code can achieve the File menu. This method is also flawed: ① user program must use the document view architecture, only use it to provide documents to open and save files, if you are using to write your own functions to open and save files, bypassing the document, the recent The file will not be used. ② this file is saved in the registry, difficult to remove, easy formation of the garbage in the registry and did not provide the user the right to clear recent files, is not conducive to the protection of user privacy. Ini files recent documents can solve the above problems, and more flexible programming control MRU can provide more functionality
(系统自动生成,下载前可以参看下载内容)
下载文件列表
(没有文件,原文件不完全或已损坏或有密码)