Solved

How to trap recently file list menu message ?

Posted on 1999-01-11
2
288 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

809 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