Solved

MRU files

Posted on 1997-02-28
1
170 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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

16 Experts available now in Live!

Get 1:1 Help Now