<?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 : Ribbon Controls Sample reproduction problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Ribbon Controls Sample reproduction problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 13:52:41 +0000</pubDate>
  <lastBuildDate>Fri, 27 May 2011 03:37:20 +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=18424</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[Ribbon Controls Sample reproduction problem : See resource.h#define IDB_GEAR...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18424&amp;PID=64612&amp;title=ribbon-controls-sample-reproduction-problem#64612</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 18424<br /><strong>Posted:</strong> 27 May 2011 at 3:37am<br /><br /><div>See resource.h</div><div><br></div><div>#define IDB_GEAR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<b>134</b></div><div>#define ID_BUTTON_LARGESPLIT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<b>134</b></div>]]>
   </description>
   <pubDate>Fri, 27 May 2011 03:37:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18424&amp;PID=64612&amp;title=ribbon-controls-sample-reproduction-problem#64612</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Controls Sample reproduction problem : Trying to reproduce the ribbon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18424&amp;PID=64532&amp;title=ribbon-controls-sample-reproduction-problem#64532</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4319">sdancer75</a><br /><strong>Subject:</strong> 18424<br /><strong>Posted:</strong> 23 May 2011 at 3:44am<br /><br /><div>Trying to reproduce the <font ="Apple-style-span" color="#990000">ribbon control</font> sample I get the following problem .</div><div><br></div><div>I am attaching the source code here&nbsp;<span ="Apple-style-span" style="color: rgb51, 51, 51; line-height: 14px; font-size: x-small; "><a href="http://forum.codejock.com/uploads/4319/Ribb&#111;n1.zip" target="_blank">uploads/4319/Ribbon1.zip</a></span></div><div><br></div><img src="uploads/4319/GetImageManager.jpg" height="146" width="542" border="0" /><div><br></div><div>Here the code I use :</div><div><br></div><div><div><font ="Apple-style-span" size="1" color="#333333">BOOL CMainFrame::CreateRibbonBar()</font></div><div><font ="Apple-style-span" size="1" color="#333333">{</font></div><div><span ="Apple-tab-span" style="white-space:pre"><font ="Apple-style-span" size="1" color="#333333">	</font></span></div><div><span ="Apple-tab-span" style="white-space:pre"><font ="Apple-style-span" size="1" color="#333333">	</font></span></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPCommandBars* pCommandBars = GetCommandBars();</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>CMenu menu;</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>menu.Attach(::GetMenu(m_hWnd));</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>SetMenu(NULL);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPRibbonBar* pRibbonBar = (CXTPRibbonBar*)pCommandBars-&gt;Add(_T("The Ribbon"), xtpBarTop, RUNTIME_CLASS(CXTPRibbonBar));</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>if (!pRibbonBar)</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>{</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>return FALSE;</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>}</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>pRibbonBar-&gt;EnableDocking(0);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPControlPopup* pControlFile = (CXTPControlPopup*)pRibbonBar-&gt;AddSystemButton(ID_MENU_FILE);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>pControlFile-&gt;SetCommandBar(menu.GetSubMenu(0));</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>pControlFile-&gt;GetCommandBar()-&gt;SetIconSize(CSize(32, 32));</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>pCommandBars-&gt;GetImageManager()-&gt;SetIcons(ID_MENU_FILE);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>pControlFile-&gt;SetCaption(_T("&amp;File"));</font></div><div><span ="Apple-tab-span" style="white-space:pre"><font ="Apple-style-span" size="1" color="#333333">	</font></span></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>pControlFile-&gt;SetIconId(IDB_GEAR);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>UINT uCommand = {IDB_GEAR};</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDB_GEAR, &amp;uCommand, 1, CSize(0, 0), xtpImageNormal);</font></div><div><span ="Apple-tab-span" style="white-space:pre"><font ="Apple-style-span" size="1" color="#333333">	</font></span></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPRibbonTab* pTabHome = pRibbonBar-&gt;AddTab(ID_TAB_BUTTONS);</font></div><div><span ="Apple-tab-span" style="white-space:pre"><font ="Apple-style-span" size="1" color="#333333">	</font></span></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><span ="Apple-tab-span" style="white-space:pre"><font ="Apple-style-span" size="1" color="#333333">	</font></span></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>// Tab button 1</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>if (pTabHome)</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>{</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>CXTPControl* pControl;</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>CXTPRibbonGroup* pGroup = pTabHome-&gt;AddGroup(ID_GROUP_LARGEBUTTONS);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>pGroup-&gt;ShowOptionButton();</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>pControl = pGroup-&gt;Add(xtpControlButton, ID_BUTTON_LARGESIMPLEBUTTON);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>pControl-&gt;SetStyle(xtpButtonIconAndCaptionBelow);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>pControl = pGroup-&gt;Add(xtpControlButton, ID_BUTTON_LARGETOGGLEBUTTON);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>pControl-&gt;SetStyle(xtpButtonIconAndCaptionBelow);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>pControl = pGroup-&gt;Add(xtpControlButtonPopup, ID_BUTTON_LARGEPOPUPBUTTON);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>pControl-&gt;SetStyle(xtpButtonIconAndCaptionBelow);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>pControl = pGroup-&gt;Add(xtpControlSplitButtonPopup, ID_BUTTON_LARGESPLIT);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>pControl-&gt;SetStyle(xtpButtonIconAndCaptionBelow);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>//pControl = pGroup-&gt;Add(xtpControlButton, ID_BUTTON_LARGESPLITPOPUPBUTTON_1);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>//pControl-&gt;SetStyle(xtpButtonIconAndCaptionBelow);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>UINT nIDs&#091;&#093; = {ID_BUTTON_LARGESIMPLEBUTTON, ID_BUTTON_LARGETOGGLEBUTTON, ID_BUTTON_LARGEPOPUPBUTTON, ID_BUTTON_LARGESPLIT};</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">		</span>pCommandBars-&gt;GetImageManager()-&gt;SetIcons(ID_GROUP_LARGEBUTTONS, nIDs, 4, CSize(32, 32), xtpImageNormal);</font></div><div><span ="Apple-tab-span" style="white-space:pre"><font ="Apple-style-span" size="1" color="#333333">		</font></span></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>}</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>pRibbonBar-&gt;SetCloseable(FALSE);</font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>pRibbonBar-&gt;EnableFrameTheme();</font></div><div><font ="Apple-style-span" size="1" color="#333333"><br></font></div><div><font ="Apple-style-span" size="1" color="#333333"><span ="Apple-tab-span" style="white-space:pre">	</span>return TRUE;</font></div><div><font ="Apple-style-span" size="1" color="#333333">}</font></div></div>]]>
   </description>
   <pubDate>Mon, 23 May 2011 03:44:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18424&amp;PID=64532&amp;title=ribbon-controls-sample-reproduction-problem#64532</guid>
  </item> 
 </channel>
</rss>