<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : How to get the pinning/unpinning functionality in</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to get the pinning/unpinning functionality in]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 24 Apr 2026 07:43:08 +0000</pubDate>
  <lastBuildDate>Tue, 20 Nov 2007 11:04:14 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=8840</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[How to get the pinning/unpinning functionality in : I am trying to add an MRU list...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8840&amp;PID=28668&amp;title=how-to-get-the-pinning-unpinning-functionality-in#28668</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 8840<br /><strong>Posted:</strong> 20 November 2007 at 11:04am<br /><br />I am trying to add an MRU list similar to office 2007(word)<p ="Ms&#111;normal"><o:p>&nbsp;<img src="uploads/20071120_110141_MRU1.png" height="472" width="428" border="0"></o:p></p><p ="Ms&#111;normal">Here is the initial code snippet that I have…</p><p ="Ms&#111;normal"><o:p>&nbsp;</o:p></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">if</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> (CXTPControlPopup* pControlSystem =pRibbonBar-&gt;GetSystemButton())<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">{<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">if</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> (CXTPCommandBar* pCommandBar =pControlSystem-&gt;GetCommandBar())<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">{<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; if</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> (CXTPControls* pControls =pCommandBar-&gt;GetControls())<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">{<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">CXTPControl* pNewButton =pControls-&gt;Add(xtpControlButton,ID_FILE_NEW);<o:p></o:p></span></p><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">//other buttons<o:p></o:p></span><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">//mru list<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">CXTPRibbonControlSystemPopupBarListCaption*pMRULabel = <span style="color: blue;">new</span>CXTPRibbonControlSystemPopupBarListCaption();<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">pMRULabel-&gt;SetCaption(<span style="color: rgb(163, 21, 21);">"RecentDocuments"</span>);<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">pMRULabel-&gt;SetBeginGroup(TRUE);<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">pControls-&gt;Add(pMRULabel);<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><o:p></o:p> <o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">CXTPControl* pMRUFile1 =pControls-&gt;Add(xtpControlButton,ID_FILE_MRU_FILE1);<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">pMRUFile1-&gt;SetCaption(<span style="color: rgb(163, 21, 21);">"&amp;1file1.doc"</span>);<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">CXTPControl* pMRUFile2 =pControls-&gt;Add(xtpControlButton,ID_FILE_MRU_FILE2);<o:p></o:p></span></p><p ="Ms&#111;normal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">&nbsp;&nbsp;&nbsp; </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">pMRUFile2-&gt;SetCaption(<span style="color: rgb(163, 21, 21);">"&amp;2file2.doc"</span>);<o:p></o:p></span></p><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><o:p></o:p></span><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">hereis the output…<o:p></o:p></span></p><p ="Ms&#111;normal"><!--&#091;if gte vml 1&#093;><v:shape id="Picture_x0020_2" o:spid="_x0000_i1026" ="#_x0000_t75" alt="" style='width:315pt;height:103.5pt'> <a href="cid:image002.png@01C82B58.2F9269A0" target="_blank"></v:shape><!&#091;endif&#093;--><!--&#091;if !vml&#093;--><img src="uploads/20071120_110220_MRU2.png" height="138" width="420" border="0"><br><!--&#091;endif&#093;--></p><p ="Ms&#111;normal"><o:p>&nbsp;</o:p></p><p ="Ms&#111;normal">How do I get the pinning/unpinning functionality ? Are thereany samples on how to use <span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">XTP_ID_FILE_MRU or </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">CXTPRibbonControlSystemRecentFileList? Do you support pinning functionality?<o:p></o:p></span></p>]]>
   </description>
   <pubDate>Tue, 20 Nov 2007 11:04:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8840&amp;PID=28668&amp;title=how-to-get-the-pinning-unpinning-functionality-in#28668</guid>
  </item> 
 </channel>
</rss>