Solved

MRU files list prob

Posted on 2001-08-07
5
262 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create frequencies of a variable from SAS dataset? 10 133
dog bark java program 15 107
sum13 challenge 24 120
sumHeights2  challenge 7 114
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 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