Solved

How to trap recently file list menu message ?

Posted on 1999-01-11
2
290 Views
Last Modified: 2013-11-20
By using app wizard, i've included MRU(recently file list) in my application, and everytime i open a new file i use AddToRecentFileList()to add that file into the registry. But how to trap the menu message of recent file list when it is selected ? there is not message mapping for recent file list like other menu options do.
0
Comment
Question by:eugeneng
[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
2 Comments
 
LVL 1

Accepted Solution

by:
dvest earned 50 total points
ID: 1327506
Add a handler to your View class for OnInitialUpdate.  This will be called every time you open a recent file using the recent file list  It will also be called for the File Open menu command too however.

Hope this helps,
David
0
 

Author Comment

by:eugeneng
ID: 1327507
thanx a lot David, but i have found the solution which i put a OnFileOpen() message handle in CDocment class and trap the message and the file name as well, then i pass the filename to my CMainframe to load the desired project. Anyhow, thanx for you help.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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
mixString challenge 36 137
Separate into files by filename 12 92
how do i create updater to My Activex application? 3 108
Notepad++ Question 11 26
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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 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