Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it normal behavior for the ID_FILE_MRU_FILEn messages to be handled in the document class (where they seem to work fine), but not the CMainFrame class (where they do not work - at least in my app)?
Posted

1 solution

A quick search of the MFC codebase with ID_FILE_MRU shows that these messages are handled by the CWinApp class.

This maps the command range of ID_FILE_MRU_FILE1..16 to the same function OnOpenRecentFile.

It appears to be teh document object that handles the command because the application object just sends the file to the DocTemplate list, finds the template which can handle the document type (if any) and tries to open it.

The mainframe is never involved in any of these steps.

So I am not too sure what your problem is, can you add any additional details?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900