![]() |
How to display the recent projects list ? |
Post Reply
|
| Author | |
fork
Newbie
Joined: 24 September 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Topic: How to display the recent projects list ?Posted: 10 October 2007 at 9:32pm |
|
I want to display the recently visited projects list in the main menu just like Visual Studio 2005, then I add some codes in my class CMyAPP:
"CRecentFileList* m_pRecentProjList;" and realize the funcions: "ON_COMMAND_EX_RANGE(ID_FILE_MRU_PROJ1, ID_FILE_MRU_PROJ9, OnOpenRecentProj) ON_UPDATE_COMMAND_UI(ID_FILE_MRU_PROJ1, OnUpdateFileMruProj1) ....." And it can display the last visited project in the menu (the display name is wrong ,but click it I can visit the exact last visited project). By studing the code of "XTPControls.cpp", I found such codes in the function : "CXTPControl* CXTPControls::AddMenuItem(CMenu* pMenu, int nIndex){ ..... case xtpControlButton: if (nID == XTP_ID_WINDOWLIST) pControl = (CXTPControl*)CXTPControlWindowList::CreateObject(); else if (nID == XTP_ID_WORKSPACE_ACTIONS) pControl = (CXTPControl*)CXTPControlWorkspaceActions::CreateObject(); else if (nID == ID_VIEW_TOOLBAR) pControl = (CXTPControl*)CXTPControlToolbars::CreateObject(); else if (nID == ID_OLE_VERB_FIRST && strCaption == _T("<<OLE VERBS GO HERE>>")) pControl = (CXTPControl*)CXTPControlOleItems::CreateObject(); else if (nID == ID_FILE_MRU_FILE1) pControl = (CXTPControl*)CXTPControlRecentFileList::CreateObject(); else pControl = (CXTPControl*)CXTPControlButton::CreateObject(); break; ......" It seems that the CXTPControl only do with the ID_FILE_MRU_FILE1, then what shall I do ? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 October 2007 at 12:32am |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
fork
Newbie
Joined: 24 September 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 October 2007 at 2:44am |
|
IT works, thanks a lot!
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |