title: Maintaining a recent files list
body: <p>I would like to maintain a simple recent files list on my MFC application that shows the 4 most recently used file names.</p>
  
  <p>I have been playing with an example from Eugene Kain's "The MFC Answer Book" that can programmatically add strings to the Recent Files list for an application based on the standard Document/View architecture: (see "Managing the Recent Files List (MRU)") :</p>
  
  <p><a href="http://www.nerdbooks.com/isbn/0201185377" rel="noreferrer">http://www.nerdbooks.com/isbn/0201185377</a></p>
  
  <p>My application is a fairly lightweight utility that does not use the Document/View architecture to manage data, file formats and so on.  I am not sure if the same principles used in the above example would be applicable here.</p>
  
  <p>Does anyone have any examples of how they go about maintaining a recent files list that is displayed in the File menu, and can be stored in a file / registry setting somewhere? More than anything, it's my lack of knowledge and understanding that is holding me back.</p>
  
  <p>Update:  I have recently found this CodeProject article to be quite useful...</p>
  
  <p><a href="http://www.codeproject.com/KB/dialog/rfldlg.aspx" rel="noreferrer">http://www.codeproject.com/KB/dialog/rfldlg.aspx</a></p>