Solved

MRU files list prob

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

706 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

18 Experts available now in Live!

Get 1:1 Help Now