Solved

MRU files list prob

Posted on 2001-08-07
5
259 Views
Last Modified: 2013-11-20
hello

i did my own list of the most recent used files
now when i try to OpenDocumentFile(filepath) which doesn't exist i get a message as well, but it doesn't remove the item from the File Menu recent list

and when i click on a file from the File Menu MRU and the file doesn't exist the app itself removes it from the file menu

how can i remove the item from the file menu programmatically if the file doesn't exist?
because the OpenDocumentFile doesn't do it "for" me..

thanks
0
Comment
Question by:kondor
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
Lockias earned 50 total points
ID: 6360113
As a class derived from CWinApp you have access to the CWinApp member m_pRecentFileList.  You can call Remove and various other operations on this.  Lookup the documentation of CRecentFileList in MSDN.

~Lockias
0
 

Author Comment

by:kondor
ID: 6363885
well i took a look already before posting the question
the problem is that when CWinApp handle the file from the file menu and the file doesn't exist it removes it from the list
and when i do my own mru files list and the file doesn't exist CWinApp doesn't remove the file from the list...
i thought CWinApp::OpenDocumentFile should do it
0
 
LVL 2

Expert Comment

by:Lockias
ID: 6364402
You will have to handle it yourself using the methods I stated.
0
 

Author Comment

by:kondor
ID: 6367428
but how come once cwinapp does it for me
and now i have to do it myself?
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9521143
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: Lockias

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Roshan Davis
EE Cleanup Volunteer
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 32
Complete beginner needs help making a cron job 9 116
WinWaitActive parameters 12 31
how to split multiple lines delimiter : 8 97
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now