Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Pinable recent files with Command Bars Designer
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Pinable recent files with Command Bars Designer

 Post Reply Post Reply
Author
Message
lfoster View Drop Down
Groupie
Groupie


Joined: 26 April 2010
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote lfoster Quote  Post ReplyReply Direct Link To This Post Topic: Pinable recent files with Command Bars Designer
    Posted: 16 July 2010 at 6:31am
Has anyone got a pinable recent files list in a System Button menu created using the Command Bars Designer?

There's a sample "RibbonControls" that has a pinable recent files list that works great, but it doesn't load an XCB file like my application.

When loading an XCB file, the pinable recent files list is displayed and you can indeed pin files, however, when you close the System Menu any pinned files are forgotten.

It seems that if you create the "CXTPRibbonControlSystemRecentFileList" through the OnCreateControls() method it works fine, but just loading the control from an XCB means the pinned items are forgotten.

I'm loading my XCB file like this:

CFile pFile(fullPath,CFile::modeRead);
     CArchive ar1(&pFile,CArchive::load | CArchive::bNoFlushOnDelete);
     GetCommandBars()->LoadDesignerBars(ar1);     
     ar1.Close();


and then i specify the following in the applications InitInstance()


m_pRecentFileList = new CXTPPinableRecentFileList(0, _T("Recent File List xxxxx"), _T("File%d"), 16);
     m_pRecentFileList->ReadList();


Any ideas anyone?

Thanks,

Lewis
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.031 seconds.