Prevent certain document open failures from removing MRU 
Author Message
 Prevent certain document open failures from removing MRU

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.



Tue, 24 Dec 2002 03:00:00 GMT  
 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.



Tue, 24 Dec 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Open File Dialog after MRU failure

2. Opening a document, while preventing the application from starting a second instance

3. how to prevent CDocument from overwriting another open document

4. failure opening an empty document

5. failure till opening a empty document

6. Difference between MRU File Open and Regular File Open

7. Prevent specific file type from showing up on the MRU list

8. CFileDialog: preventing certain files from being listed

9. Prevent resizing of window below a certain size

10. Removing MRU file list from the menu

11. How to remove certain doc types from the file|new dialog box in MDI apps

12. How to manually write MRU and Documents menu?

 

 
Powered by phpBB® Forum Software