CWinApp::AddToRecentFileList
MRU ファイル リストに lpszPathName を追加するには、このメンバー関数を呼び出します。
virtual void AddToRecentFileList(
LPCTSTR lpszPathName
);
パラメーター
- lpszPathName
ファイルのパス。
解説
このメンバー関数を使用する前に、現在の MRU ファイル リストを読み込むに LoadStdProfileSettings のメンバー関数を呼び出す必要があります。
フレームワークは、ファイルを開くか、新しい名前のファイルを[名前を付けて保存]コマンドを実行すると、このメンバー関数を呼び出します。
使用例
// This adds the pathname c:\temp\test.doc to the top of
// the most recently used (MRU) list in the File menu.
AfxGetApp()->AddToRecentFileList(_T("c:\\temp\\test.doc"));
必要条件
ヘッダー: afxwin.h