[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

CWinApp::OpenDocumentFile() without adding to MRU file list

Posted on 2000-01-05
3
Medium Priority
?
456 Views
Last Modified: 2013-11-20
I have an MFC SDI doc/view app, and I want to be able to load files with the CWinApp::OpenDocumentFile() method but without having certain files be added to the MRU list.  (I do want an MRU list, but not all loaded files should show up there).

Is this possible?

Thanks,

Don
0
Comment
Question by:dmetzler
  • 2
3 Comments
 
LVL 3

Expert Comment

by:GGRUNDY
ID: 2328248
From a quick look at the mfc source,
I'd say the best you can hope for is to remove it from the MRU list once it's in there.

m_pRecentFileList->Remove(nIndex)

but as m_pRecentFileList is a protected member of CWinApp so the you'll have to do the work in your CWinApp derived class.

Cheers Greg
0
 

Author Comment

by:dmetzler
ID: 2329601
Thanks - that did it!

Don
0
 
LVL 3

Accepted Solution

by:
GGRUNDY earned 200 total points
ID: 2330099
See Comments
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…
Suggested Courses
Course of the Month8 days, 21 hours left to enroll

590 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question