-
AddToRecentFileList
鎖定
AddToRecentFileList,計算機術語。調用該函數可把lpszPathName加入“最近使用過”的文件列表。
- 外文名
- AddToRecentFileList
- 類 型
- 計算機術語
AddToRecentFileList基本信息
類: CWinApp
頭文件:
afxwin.h
語法:
參數
lpszPathName 文件的路徑
説明:
應在使用這個成員函數前調用LoadStdProfileSetting成員函數以載入當前的MRU(“最近使用過”)文件列表。
當框架打開一個文件或者執行Save As命令用新名字保存文件,就調用這個函數。
AddToRecentFileList示例
/*******************************************************
演示函數原型: theApp->AddToRecentFileList("c:\\example.txt");
程序功能説明: 把文件c:\\example.txt添加到“最近使用過”的文件列表中。
*******************************************************/
//一段例程
//CWinApp的派生類CTestApp
class CTestApp : public CWinApp
{ public: CTestApp( );
CString str;//添加的對話框變量
... }
CTestApp *theApp=(CTestApp *)AfxGetApp( );
//把文件c:\\example.txt添加到“最近使用過”的文件列表中。
theApp->AddToRecentFileList("c:\\example.txt");
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:6次歷史版本
- 最近更新: linmeixci6