<?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 and menus</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Ribbon and menus]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 15:49:45 +0000</pubDate>
  <lastBuildDate>Fri, 22 Jun 2007 15:16:44 +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=7431</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 and menus : Yes - that&amp;#039;s what I thought...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7431&amp;PID=23886&amp;title=ribbon-and-menus#23886</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3075">irekz</a><br /><strong>Subject:</strong> 7431<br /><strong>Posted:</strong> 22 June 2007 at 3:16pm<br /><br />Yes - that's what I thought I need to do :)<DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Fri, 22 Jun 2007 15:16:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7431&amp;PID=23886&amp;title=ribbon-and-menus#23886</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon and menus : So what problem? Add CMainFrame...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7431&amp;PID=23879&amp;title=ribbon-and-menus#23879</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7431<br /><strong>Posted:</strong> 22 June 2007 at 1:25pm<br /><br />So what problem? Add CMainFrame method, loop menu items and add new&nbsp;buttons?<DIV>&nbsp;</DIV><DIV>int nCount = ::GetMenuItemCount(pMenu-&gt;m_hMenu);</DIV><DIV>&nbsp;for (int i = 0; i &lt; nCount; i++)<BR>&nbsp;{<BR>CString strCaption;<BR>&nbsp;pMenu-&gt;GetMenuString(i, strCaption, MF_BYPOSITION);<BR>...<BR>}<BR></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 22 Jun 2007 13:25:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7431&amp;PID=23879&amp;title=ribbon-and-menus#23879</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon and menus : Hi there :)  I&amp;#039;m porting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7431&amp;PID=23878&amp;title=ribbon-and-menus#23878</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3075">irekz</a><br /><strong>Subject:</strong> 7431<br /><strong>Posted:</strong> 22 June 2007 at 11:27am<br /><br />Hi there :)<DIV>&nbsp;</DIV><DIV>I'm porting application that has a lot of menus into ribbon.</DIV><DIV>I found it very slow to add every tab, group and button to ribbon with C++ code. Is there a way to add a complete submenu into ribbon tab (for example as a group)? Idealy it would add all items as butons, take care of separators and if there is a submenu it woul insert a button with down arrow and submenu would appear on click.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Pseudo code I want:</DIV><DIV>&nbsp;</DIV><FONT color=#0000ff size=2><P>CMenu myMenu;</P><DIV>myMenu.LoadMenu( IDR_MAINFRAME );</DIV><P>CXTPRibbonTab* pTab = pMyRibbon-&gt;AddTab( "MyTab" );</P><P>pTab-&gt;AddGroup( myMenu.GetSubMenu(0));&nbsp;&nbsp; &lt;--- any way to do this?</P></FONT><FONT color=#0000ff><DIV></DIV><DIV>Thanks for your help guys!</DIV><DIV>Irek</DIV><DIV>&nbsp;</DIV><DIV>ps. I know that there is a way to do someting similar by loading a toolbar:&nbsp; pGroup-&gt;LoadToolbar&nbsp; - but I need to do it from menu</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 22 Jun 2007 11:27:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7431&amp;PID=23878&amp;title=ribbon-and-menus#23878</guid>
  </item> 
 </channel>
</rss>