Recent Files List issue
Reza Razavipour -- biles.com!reza_r@jabberwock.biles.com
Friday, January 19, 1996
I have two CMultiDocTemplates and one type of document is "opened" via
the File Open menu. The other document is opened via a File Load menu.
I have good reasons for having done this, or so I think.
How can I prevent the "loadable" document name from getting added to
the list of recent files?
Any ideas or hints are appreciated.
TIA
Reza
Niels Ull Jacobsen -- nuj@kruger.dk
Monday, January 22, 1996
[...]
> How can I prevent the "loadable" document name from getting added to
> the list of recent files?
Override CDocument::SetPathName and call the base class version with
bAddToMRU set to false.
This is in MFC 4.0. As you didn't state your version number, I don't know
if this will work to you.
> Reza
--
Niels Ull Jacobsen, Kruger A/S
Everything stated herein is THE OFFICIAL POLICY of the entire Kruger
group and should be taken as legally binding in every respect. Pigs
will grow wings and fly.
Lee Jae Kil -- juria@seodu.co.kr
Wednesday, January 24, 1996
Reza Razavipour wrote:
>
> I have two CMultiDocTemplates and one type of document is "opened" via
> the File Open menu. The other document is opened via a File Load menu.
> I have good reasons for having done this, or so I think.
>
> How can I prevent the "loadable" document name from getting added to
> the list of recent files?
>
> Any ideas or hints are appreciated.
>
> TIA
>
> Reza
>
Override void CWinApp::AddToRecentFileList(LPCTSTR lpszFileName).
i.e.
CMyApp::AddToRecentFileList(LPCTSTR lpszFileName)
{
if lpszFileName has unwanted extension
then return
CWinApp::AddToRecentFileList(lpszFileName);
}
----
Lee Jae Kil, juria@seodu.co.kr, juria@puma.kaitech.re.kr
| Вернуться в корень Архива
|