Solved

MRU files

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 53
xyBalance chalenge 58 102
repeatEnd java challenge 42 85
how to use laptop or pad camera in vb.net windows application 2 103
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: 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.

680 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