Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to trap recently file list menu message ?

Posted on 1999-01-11
2
Medium Priority
?
295 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
2 Comments
 
LVL 1

Accepted Solution

by:
dvest earned 100 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

Industry Leaders: 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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

963 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