Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CWinApp::AddToRecentFileList

Call this member function to add lpszPathName to the MRU file list.

virtual void AddToRecentFileList( 
   LPCTSTR lpszPathName  
);
lpszPathName

The path of the file.

You should call the LoadStdProfileSettings member function to load the current MRU file list before you use this member function.

The framework calls this member function when it opens a file or executes the Save As command to save a file with a new name.

// 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"));

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.