Solved

How to trap recently file list menu message ?

Posted on 1999-01-11
2
285 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 50 total points
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now