Solved

MRU files

Posted on 1997-02-28
1
202 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
[X]
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
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

617 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