Solved

MRU files

Posted on 1997-02-28
1
174 Views
Last Modified: 2013-11-20
I am running Visual C++ 1.52 under Windows 3.1.
Is it possible in this environment to increase the number of MRU files that the framework will retain from 4 to, say, 10?
If so, how is it done?
0
Comment
Question by:mgordon
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 25 total points
ID: 1300524
You can, but it isn't easy.

It's not easy because the size of the list is relatively hardcoded in this version of MFC.  (It's fixed in MFC 2.0. MFC 1.5 is almost four years old!)

You'll need to overrdie: CWinApp::OnOpenRecenFile(), AddToRcentFileList(), and OnUpdateRecentFileMenu().  You'll also need to write your own OnCmdMsg() override to handle the extra command entries that you allow yourself.

The code you'll write for those functions will be really no different than what's already in MFC's APPUI.CPP source file--you'll just need to avoid the hardcoded _AFX_MRU_COUNT limit.

.B ekiM

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 112
Host to IP 7 77
method notes when mouse over in eclipse 5 83
NotAlone Challenge 20 80
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: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 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

17 Experts available now in Live!

Get 1:1 Help Now