<?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 : MDI-ribbon (urgent)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : MDI-ribbon (urgent)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 23:31:34 +0000</pubDate>
  <lastBuildDate>Sun, 15 Oct 2006 17:11:28 +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=5004</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[MDI-ribbon (urgent) : Hah, easy trick as always! =) Thanks!...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=16543&amp;title=mdiribbon-urgent#16543</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 5004<br /><strong>Posted:</strong> 15 October 2006 at 5:11pm<br /><br />Hah, easy trick as always! =)<DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Sun, 15 Oct 2006 17:11:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=16543&amp;title=mdiribbon-urgent#16543</guid>
  </item> 
  <item>
   <title><![CDATA[MDI-ribbon (urgent) : Call pRibbonBar-&amp;gt;SetCurSel(nIndex);...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=16535&amp;title=mdiribbon-urgent#16535</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5004<br /><strong>Posted:</strong> 15 October 2006 at 1:12pm<br /><br /><P>Call pRibbonBar-&gt;SetCurSel(nIndex);</P>]]>
   </description>
   <pubDate>Sun, 15 Oct 2006 13:12:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=16535&amp;title=mdiribbon-urgent#16535</guid>
  </item> 
  <item>
   <title><![CDATA[MDI-ribbon (urgent) : Ehm... how? :D ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=16525&amp;title=mdiribbon-urgent#16525</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 5004<br /><strong>Posted:</strong> 15 October 2006 at 12:30am<br /><br />Ehm... how? :D]]>
   </description>
   <pubDate>Sun, 15 Oct 2006 00:30:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=16525&amp;title=mdiribbon-urgent#16525</guid>
  </item> 
  <item>
   <title><![CDATA[MDI-ribbon (urgent) : Hello, You can activate it manually...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15579&amp;title=mdiribbon-urgent#15579</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5004<br /><strong>Posted:</strong> 10 September 2006 at 3:40am<br /><br />Hello,<DIV>You can activate it manually in OnInitialUpdate of view.</DIV>]]>
   </description>
   <pubDate>Sun, 10 Sep 2006 03:40:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15579&amp;title=mdiribbon-urgent#15579</guid>
  </item> 
  <item>
   <title><![CDATA[MDI-ribbon (urgent) : One more thing though... :D  When...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15576&amp;title=mdiribbon-urgent#15576</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 5004<br /><strong>Posted:</strong> 09 September 2006 at 4:39pm<br /><br />One more thing though... :D<DIV>&nbsp;</DIV><DIV>When I open a new view (View1), how do I make the Ribbon tab called "View 1" the active one? I don't want the user to have to click on the correct tab in order to see the new view's menu items.</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV>]]>
   </description>
   <pubDate>Sat, 09 Sep 2006 16:39:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15576&amp;title=mdiribbon-urgent#15576</guid>
  </item> 
  <item>
   <title><![CDATA[MDI-ribbon (urgent) : ok :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15571&amp;title=mdiribbon-urgent#15571</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5004<br /><strong>Posted:</strong> 09 September 2006 at 8:35am<br /><br />ok :)]]>
   </description>
   <pubDate>Sat, 09 Sep 2006 08:35:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15571&amp;title=mdiribbon-urgent#15571</guid>
  </item> 
  <item>
   <title><![CDATA[MDI-ribbon (urgent) : Hi again! I solved it. Sorry...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15570&amp;title=mdiribbon-urgent#15570</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 5004<br /><strong>Posted:</strong> 09 September 2006 at 8:19am<br /><br />Hi again!<DIV><BR>I solved it. Sorry for bothering you about this ribbon thingy =P. I accidently called wrong OnCmdMsg on my main frame.</DIV><DIV>&nbsp;</DIV><DIV>Thanks anyway!</DIV>]]>
   </description>
   <pubDate>Sat, 09 Sep 2006 08:19:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15570&amp;title=mdiribbon-urgent#15570</guid>
  </item> 
  <item>
   <title><![CDATA[MDI-ribbon (urgent) : Thanks for your fast response. Here...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15569&amp;title=mdiribbon-urgent#15569</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 5004<br /><strong>Posted:</strong> 09 September 2006 at 7:32am<br /><br /><P>Thanks for your fast response.</P><DIV>Here is the ribbon code for my "menu item":</DIV><DIV>CXTPRibbonGroup* pGroupCompany = pTabCompany-&gt;AddGroup(ID_GROUP_COMPANY);<BR>pGroupCompany-&gt;Add(xtpControlButton, ID_COMPANY_SEARCH);</DIV><DIV>&nbsp;</DIV><DIV>If I add a handler in CMainFrame, it is being called correctly. However, in CMyView my handler is NOT being called (even if I remove the handler in CMainFrame):</DIV><DIV>&nbsp;</DIV><DIV>ON_COMMAND(ID_COMPANY_SEARCH, CompanySearch)</DIV><DIV>&nbsp;</DIV><DIV>...</DIV><DIV>&nbsp;</DIV><DIV>void CMyView::CompanySearch()<BR>{<BR>&nbsp;&nbsp;&nbsp; CString str;<BR>&nbsp;&nbsp;&nbsp; str.Format("CMyView, this: %d", (DWORD)this);<BR>&nbsp;&nbsp;&nbsp; AfxMessageBox(str);<BR>}<BR></DIV><DIV>&nbsp;</DIV><DIV>Don't I need to somehow route command messages to the views? I know you do this with OnCmdMsg in SDI applications, but in MDI I have no clue.</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Sat, 09 Sep 2006 07:32:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15569&amp;title=mdiribbon-urgent#15569</guid>
  </item> 
  <item>
   <title><![CDATA[MDI-ribbon (urgent) : Hello, In Ribbon it works same....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15567&amp;title=mdiribbon-urgent#15567</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5004<br /><strong>Posted:</strong> 09 September 2006 at 6:20am<br /><br />Hello,<DIV>In Ribbon it works same. Just add handler to your view.</DIV>]]>
   </description>
   <pubDate>Sat, 09 Sep 2006 06:20:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15567&amp;title=mdiribbon-urgent#15567</guid>
  </item> 
  <item>
   <title><![CDATA[MDI-ribbon (urgent) : Hi, I am going to present my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15561&amp;title=mdiribbon-urgent#15561</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 5004<br /><strong>Posted:</strong> 08 September 2006 at 2:53pm<br /><br /><P>Hi,</P><P>I am going to present my application on tuesday, and I really really have go get this working by then. Please, help me out as soon as you can. (Btw, your "Immediate support"-link is dead.)</P><P>Consider a general MDI application. Here you bind different menus to different views, and all command routing is handled internally. All you have to do is to add your command handlers in your view and you are done.</P><P>Now, with ribbons I simply do not understand how this behavior would be accomplished. As far as I can see, you bind the ribbon to the main frame's menu and then remove the menu from the frame:</P><DIV>CXTPCommandBars* pCommandBars = GetCommandBars();<BR>CMenu menu;<BR>menu.Attach(::GetMenu(m_hWnd));<BR>SetMenu(NULL);</DIV><DIV>&nbsp;</DIV><DIV>QUESTION<BR>How do I route menu commands to the opened view? There must be something really simple that I have missed.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance!<BR>/Chris, Sweden</DIV>]]>
   </description>
   <pubDate>Fri, 08 Sep 2006 14:53:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5004&amp;PID=15561&amp;title=mdiribbon-urgent#15561</guid>
  </item> 
 </channel>
</rss>