Solved

How to trap recently file list menu message ?

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

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
repeatEnd java challenge 42 85
not able to insert into temp table 68 169
Separate files macro - Errors on larger data set 18 73
Increment column based of a FK 8 32
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: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

820 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