Print Page | Close Window

How to display the recent projects list ?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8398
Printed Date: 13 November 2025 at 9:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to display the recent projects list ?
Posted By: fork
Subject: How to display the recent projects list ?
Date 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 ?
   
   
   



Replies:
Posted By: Oleg
Date Posted: 11 October 2007 at 12:32am
Hello,
 
Here some demo:
 
https://forum.codejock.com/uploads/20071011_003220_MRUSample.zip - MRUSample.zip


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: fork
Date Posted: 11 October 2007 at 2:44am
IT works, thanks a lot!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net