프로젝트의 AppClass에서
#include <afxadv.h> ///< FOR CRecentFileList
void CXXXApp::RemoveMRUString(const CString &rMRU)
{
char szBuf[MAX_PATH] = {'\0' ,};
const int nMRUSize = m_pRecentFileList->GetSize();
for( int i = 0;i < nMRUSize;++i)
{
CString rName = m_pRecentFileList->m_arrNames[ i ];
if( rMRU == rName )
{
m_pRecentFileList->Remove( i );
break;
}
}
if( i != nMRUSize ) m_pRecentFileList->WriteList();
}
#include <afxadv.h> ///< FOR CRecentFileList
void CXXXApp::RemoveMRUString(const CString &rMRU)
{
char szBuf[MAX_PATH] = {'\0' ,};
const int nMRUSize = m_pRecentFileList->GetSize();
for( int i = 0;i < nMRUSize;++i)
{
CString rName = m_pRecentFileList->m_arrNames[ i ];
if( rMRU == rName )
{
m_pRecentFileList->Remove( i );
break;
}
}
if( i != nMRUSize ) m_pRecentFileList->WriteList();
}
댓글
댓글 쓰기