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
Solved

MRU files

Posted on 1997-02-28
1
186 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
Best tools for Backup and restore of Wordpress site 6 57
dog bark java program 15 105
My project did see openJDK that I installed. What could be the problem 7 151
Problem to App 4 97
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: 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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

790 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