?
Solved

MRU files list prob

Posted on 2001-08-07
5
Medium Priority
?
265 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
Lockias earned 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

741 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