
Prevent certain document open failures from removing MRU
CWinApp has a protected member m_pRecentFileList which is a
CRecentFileList*. CRecentFileList has a number or members for managing the
MRU. Moreover, CWinApp has a member function AddToRecentFileList(...).
If you need more information, the book "MFC Internals" by Shepherd and Wingo
has a couple of pages devoted to MRU.
TFM3
Note: Spam-resistant e-mail address
Quote:
> I have a few CUserException derived exceptions that may be thrown during
> document opening. I do it for two reasons:
> 1) I need to display a less cryptic message box (done with a
> ReportSaveLoadException override).
> 2) I need the filename to NOT dissappear from the MRU, but can't figure
> out how.