Open file and recent files in MFC
-
2 questions (1)how to get difference when user loads a file from "Open file" and "Recent fil" - or, how to know if user clicks a "Recent file" rather than "Open file"? In my app, I used a setteing (or check register) to record "recent files", I think it is not a good way. (2)how to change maximum allowed count of "recent files"?
-
2 questions (1)how to get difference when user loads a file from "Open file" and "Recent fil" - or, how to know if user clicks a "Recent file" rather than "Open file"? In my app, I used a setteing (or check register) to record "recent files", I think it is not a good way. (2)how to change maximum allowed count of "recent files"?
1 => the function AddToRecentFileList of the application is automatically called by the document to complete the MRU (Most Recent Files) file list when the application open a MRU file, the function OnOpenRecentFile is called by the application class 2 => in your class application::InitInstance there's the fuction LoadStdProfileSettings(5) which is called. This define the number of MRU