list of most recently used files in file menu
-
Hi, I am using LoadProfileSettings(5) in InitInstance to open the 5 most recently used files when my application is loaded and AddToRecentFilename(szLoadFilename) to update the MRU list with the last file loaded. It all works fine except it abbreviates the full file path e.g. c:\my documents\my long directory\my file.doc becomes c:\my documents\...my file.doc Is there a way please of preventing it from abbreviating the full file path so I get c:\my documents\my long directory\my file.doc instead of c:\my documents\...my file.doc Thanks, Daniel
-
Hi, I am using LoadProfileSettings(5) in InitInstance to open the 5 most recently used files when my application is loaded and AddToRecentFilename(szLoadFilename) to update the MRU list with the last file loaded. It all works fine except it abbreviates the full file path e.g. c:\my documents\my long directory\my file.doc becomes c:\my documents\...my file.doc Is there a way please of preventing it from abbreviating the full file path so I get c:\my documents\my long directory\my file.doc instead of c:\my documents\...my file.doc Thanks, Daniel
daniel madden wrote:
It all works fine except it abbreviates the full file path e.g. c:\my documents\my long directory\my file.doc becomes c:\my documents\...my file.doc
Where is this abbreviated path shown?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
Hi, I am using LoadProfileSettings(5) in InitInstance to open the 5 most recently used files when my application is loaded and AddToRecentFilename(szLoadFilename) to update the MRU list with the last file loaded. It all works fine except it abbreviates the full file path e.g. c:\my documents\my long directory\my file.doc becomes c:\my documents\...my file.doc Is there a way please of preventing it from abbreviating the full file path so I get c:\my documents\my long directory\my file.doc instead of c:\my documents\...my file.doc Thanks, Daniel
It does that so you don't end up with menus across the screen. To override this you'll need to search for OnInitMenu in the MFC sources. Good luck, it gets quite knotty down there... Iain.
-
daniel madden wrote:
It all works fine except it abbreviates the full file path e.g. c:\my documents\my long directory\my file.doc becomes c:\my documents\...my file.doc
Where is this abbreviated path shown?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
Hi David, c:\my documents\my long directory\my file.doc was a simple example that gets an abreviated path of c:\my documents\...my file.doc. Thererefore c:\my documents\... is the abbreviated path of c:\my documents\my long directory\. Daniel
-
It does that so you don't end up with menus across the screen. To override this you'll need to search for OnInitMenu in the MFC sources. Good luck, it gets quite knotty down there... Iain.
thanks for the suggestion Iain. It does indeed get quite knotty down there. For now, I have a simple workaround of setting the CRecentFileList's member variable m_nMaxDisplayLength to show longer length filenames and paths, Cheers, Daniel
-
Hi David, c:\my documents\my long directory\my file.doc was a simple example that gets an abreviated path of c:\my documents\...my file.doc. Thererefore c:\my documents\... is the abbreviated path of c:\my documents\my long directory\. Daniel
I understood all that. My question was where is this path shown?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
I understood all that. My question was where is this path shown?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
Ok - sorry the path is shown at the bottom of the File Menu where it usually shows the most recently used files.