Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to display the recent projects list ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to display the recent projects list ?

 Post Reply Post Reply
Author
Message
fork View Drop Down
Newbie
Newbie


Joined: 24 September 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fork Quote  Post ReplyReply Direct Link To This Post 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 ?
   
   
   
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 October 2007 at 12:32am
Hello,
 
Here some demo:
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
fork View Drop Down
Newbie
Newbie


Joined: 24 September 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fork Quote  Post ReplyReply Direct Link To This Post Posted: 11 October 2007 at 2:44am
IT works, thanks a lot!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.055 seconds.