Click here to Skip to main content
15,901,982 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: steps to begin a programming Pin
Maxwell Chen1-Aug-03 2:48
Maxwell Chen1-Aug-03 2:48 
GeneralRe: steps to begin a programming Pin
Pham Quang Hai1-Aug-03 3:46
Pham Quang Hai1-Aug-03 3:46 
GeneralRe: steps to begin a programming Pin
dog_spawn1-Aug-03 3:55
dog_spawn1-Aug-03 3:55 
GeneralRe: steps to begin a programming Pin
Maxwell Chen1-Aug-03 4:00
Maxwell Chen1-Aug-03 4:00 
GeneralDisable MRU (Most Recently Used) Problem Pin
LittleYellowBird1-Aug-03 0:43
LittleYellowBird1-Aug-03 0:43 
GeneralRe: Disable MRU (Most Recently Used) Problem Pin
Neville Franks1-Aug-03 1:22
Neville Franks1-Aug-03 1:22 
GeneralRe: Disable MRU (Most Recently Used) Problem Pin
LittleYellowBird1-Aug-03 2:48
LittleYellowBird1-Aug-03 2:48 
GeneralRe: Disable MRU (Most Recently Used) Problem Pin
Neville Franks1-Aug-03 3:59
Neville Franks1-Aug-03 3:59 
Hi Alison,
Overide CWinApp::OnOpenRecentFile() and change it as follows:

BOOL CWinApp::OnOpenRecentFile(UINT nID)
{
	ASSERT_VALID(this);
	ASSERT(m_pRecentFileList != NULL);

	ASSERT(nID >= ID_FILE_MRU_FILE1);
	ASSERT(nID < ID_FILE_MRU_FILE1 + (UINT)m_pRecentFileList->GetSize());
	int nIndex = nID - ID_FILE_MRU_FILE1;
	ASSERT((*m_pRecentFileList)[nIndex].GetLength() != 0);

	TRACE2("MRU: open file (%d) '%s'.\n", (nIndex) + 1,
			(LPCTSTR)(*m_pRecentFileList)[nIndex]);

        if ( bNotAllowedToOpenFiles )   // added these 3 lines NF
                 InformUser();
        else
	if (OpenDocumentFile((*m_pRecentFileList)[nIndex]) == NULL)
		m_pRecentFileList->Remove(nIndex);

	return TRUE;
}


This also shows m_pRecentFileList is where the list is stored.

Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
GeneralRe: Disable MRU (Most Recently Used) Problem Pin
LittleYellowBird3-Aug-03 23:41
LittleYellowBird3-Aug-03 23:41 
GeneralRe: Disable MRU (Most Recently Used) Problem Pin
Vitali Halershtein1-Aug-03 2:23
Vitali Halershtein1-Aug-03 2:23 
GeneralRe: Disable MRU (Most Recently Used) Problem Pin
LittleYellowBird1-Aug-03 2:52
LittleYellowBird1-Aug-03 2:52 
GeneralDebugging Multithread will Lockup my computer Pin
Mathias S.1-Aug-03 0:26
Mathias S.1-Aug-03 0:26 
GeneralRe: Debugging Multithread will Lockup my computer Pin
Neville Franks1-Aug-03 1:17
Neville Franks1-Aug-03 1:17 
GeneralDump Files Pin
ita_cas1-Aug-03 0:18
ita_cas1-Aug-03 0:18 
GeneralRe: Dump Files Pin
Mike Dimmick1-Aug-03 2:33
Mike Dimmick1-Aug-03 2:33 
GeneralSignal Processing of a wav. file in real time Pin
björka31-Jul-03 23:49
björka31-Jul-03 23:49 
GeneralRe: Signal Processing of a wav. file in real time Pin
Alexander M.,1-Aug-03 2:16
Alexander M.,1-Aug-03 2:16 
GeneralRe: Signal Processing of a wav. file in real time Pin
björka1-Aug-03 3:07
björka1-Aug-03 3:07 
GeneralRe: Signal Processing of a wav. file in real time Pin
Alexander M.,1-Aug-03 8:55
Alexander M.,1-Aug-03 8:55 
GeneralCTreeCtrl Pin
Marissa18231-Jul-03 23:36
Marissa18231-Jul-03 23:36 
GeneralRe: CTreeCtrl Pin
Ryan Binns31-Jul-03 23:45
Ryan Binns31-Jul-03 23:45 
GeneralRe: CTreeCtrl Pin
Vitali Halershtein1-Aug-03 0:08
Vitali Halershtein1-Aug-03 0:08 
GeneralDisplay text on desktop Pin
Bartosz Bien31-Jul-03 23:02
Bartosz Bien31-Jul-03 23:02 
GeneralRe: Display text on desktop Pin
HPSI1-Aug-03 1:37
HPSI1-Aug-03 1:37 
GeneralRe: Display text on desktop Pin
andyj1151-Aug-03 3:57
andyj1151-Aug-03 3:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.