![]() |
How to get the pinning/unpinning functionality in |
Post Reply
|
| Author | |
mrmathis
Senior Member
Joined: 17 May 2007 Location: United States Status: Offline Points: 105 |
Post Options
Thanks(0)
Quote Reply
Topic: How to get the pinning/unpinning functionality inPosted: 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); //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
|
|
![]() |
|
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 |