Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to get the pinning/unpinning functionality in
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to get the pinning/unpinning functionality in

 Post Reply Post Reply
Author
Message
mrmathis View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 May 2007
Location: United States
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote mrmathis Quote  Post ReplyReply Direct Link To This Post Topic: How to get the pinning/unpinning functionality in
    Posted: 20 November 2007 at 11:04am
I am trying to add an MRU list similar to office 2007(word)

 

Here is the initial code snippet that I have…

 

if (CXTPControlPopup* pControlSystem = pRibbonBar->GetSystemButton())

{

if (CXTPCommandBar* pCommandBar = pControlSystem->GetCommandBar())

{

    if (CXTPControls* pControls = pCommandBar->GetControls())

    {

        CXTPControl* pNewButton = pControls->Add(xtpControlButton,ID_FILE_NEW);

        //other buttons

 

        //mru list

        CXTPRibbonControlSystemPopupBarListCaption* pMRULabel = new CXTPRibbonControlSystemPopupBarListCaption();

        pMRULabel->SetCaption("Recent Documents");

        pMRULabel->SetBeginGroup(TRUE);

        pControls->Add(pMRULabel);

        CXTPControl* pMRUFile1 = pControls->Add(xtpControlButton,ID_FILE_MRU_FILE1);

        pMRUFile1->SetCaption("&1 file1.doc");

        CXTPControl* pMRUFile2 = pControls->Add(xtpControlButton,ID_FILE_MRU_FILE2);

        pMRUFile2->SetCaption("&2 file2.doc");

here is the output…


 

How do I get the pinning/unpinning functionality ? Are there any samples on how to use XTP_ID_FILE_MRU or CXTPRibbonControlSystemRecentFileList? Do you support pinning functionality?

--Mike
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.035 seconds.