<?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 : Switching MDI menu&#146;s</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Switching MDI menu&#146;s]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 21:16:46 +0000</pubDate>
  <lastBuildDate>Thu, 13 Nov 2003 00:41:21 +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=43</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[Switching MDI menu&#146;s : Hil, I do this in my app: void...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=530&amp;title=switching-mdi-menus#530</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=129">Felipe</a><br /><strong>Subject:</strong> 43<br /><strong>Posted:</strong> 13 November 2003 at 12:41am<br /><br /><P>Hil, I do this in my app:</P><P>void CMainFrame::ActivateXXXMenus()<BR>{<BR>&nbsp;if (m_nPreviousMenuBar != IDR_XXXMENU)<BR>&nbsp;{</P><P>&nbsp; CXTPCommandBar* pMenuBar1 = GetCommandBars()-&gt;GetMenuBar();<BR>&nbsp; if (pMenuBar1 == NULL) return;</P><P>&nbsp; pMenuBar1-&gt;SetSelected(-1);<BR>&nbsp;&nbsp;pMenuBar1-&gt;SetTitle("XXX Menu");<BR>&nbsp;&nbsp;pMenuBar1-&gt;GetControls()-&gt;RemoveAll();<BR>&nbsp;&nbsp;((CXTPMenuBar*) pMenuBar1)-&gt;LoadMenuBar(IDR_XXXMENU);<BR>&nbsp;&nbsp;m_nPreviousMenuBar = IDR_XXXMENU;</P><P>...</P><P><BR>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 13 Nov 2003 00:41:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=530&amp;title=switching-mdi-menus#530</guid>
  </item> 
  <item>
   <title><![CDATA[Switching MDI menu&#146;s : Hi,  currently I&amp;#039;m switching...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=506&amp;title=switching-mdi-menus#506</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=216">stuebing</a><br /><strong>Subject:</strong> 43<br /><strong>Posted:</strong> 07 November 2003 at 9:57am<br /><br />Hi,<br /><br />currently I'm switching menus "by hand" using the following approach:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CMenu m<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m.Attach(newMenuHandle);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_pMenuBar-&gt;GetControls()-& gt;RemoveAll();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int i = 0; i != m.GetMenuItemCount(); ++i) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pMenuBar-&gt;GetControls()-&gt;AddMenuItem(&m,  i);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m.Detach();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SetMenu(0);<br /><br />As I do not need real MDI-automagic-switching it is working ok for me.<br /><br />Bye,<br />&nbsp;&nbsp;&nbsp;&nbsp;Andreas]]>
   </description>
   <pubDate>Fri, 07 Nov 2003 09:57:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=506&amp;title=switching-mdi-menus#506</guid>
  </item> 
  <item>
   <title><![CDATA[Switching MDI menu&#146;s : Please wait ToolkitPro 8.60 it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=477&amp;title=switching-mdi-menus#477</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 43<br /><strong>Posted:</strong> 03 November 2003 at 11:46pm<br /><br /><P>Please wait ToolkitPro 8.60 it has some new functions for MDI menus.</P>]]>
   </description>
   <pubDate>Mon, 03 Nov 2003 23:46:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=477&amp;title=switching-mdi-menus#477</guid>
  </item> 
  <item>
   <title><![CDATA[Switching MDI menu&#146;s : Hi,  I&amp;#039;m currently evaluating...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=393&amp;title=switching-mdi-menus#393</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=216">stuebing</a><br /><strong>Subject:</strong> 43<br /><strong>Posted:</strong> 29 October 2003 at 3:59am<br /><br />Hi,<br /><br />I'm currently evaluating XTP 8.51 using VC++ 6.0 and this non-support for switching MDI menus is nearly a show stopper <img border="0" src="http://forum.codejock.com/smileys/smiley6.gif" border="0"><br /><br />My MDI application has about 4 different document types and has to switch the mainframe menu according to the currently active MDI window. <br /><br />Is there some work-around to stay with XTP?<br /><br />Andreas]]>
   </description>
   <pubDate>Wed, 29 Oct 2003 03:59:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=393&amp;title=switching-mdi-menus#393</guid>
  </item> 
  <item>
   <title><![CDATA[Switching MDI menu&#146;s :  Sorry, Paul. It&amp;#039;s not implemented...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=119&amp;title=switching-mdi-menus#119</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 43<br /><strong>Posted:</strong> 09 June 2003 at 8:47am<br /><br /><FONT color=#808080><P>Sorry, Paul. It's not implemented in current version.</P></FONT>]]>
   </description>
   <pubDate>Mon, 09 Jun 2003 08:47:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=119&amp;title=switching-mdi-menus#119</guid>
  </item> 
  <item>
   <title><![CDATA[Switching MDI menu&#146;s : Hi Oleg, What is the best method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=98&amp;title=switching-mdi-menus#98</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=44">PaulM</a><br /><strong>Subject:</strong> 43<br /><strong>Posted:</strong> 02 June 2003 at 2:50pm<br /><br /><P>Hi Oleg,</P><P>What is the best method for switching the menu's for MDI windows?&nbsp; IE where would you suggest I place the code and provide an example.&nbsp; I noticed the sample app's always deal with one menu for the application and don't deal with swapping the menus for different views.&nbsp; Actually, I would suggest you do this for the Visual Studio 7 app example.&nbsp; When the child window is closed, show how the menu would change the IDR_MAINFRAME.</P><P>&nbsp;</P><P>Paul</P>]]>
   </description>
   <pubDate>Mon, 02 Jun 2003 14:50:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=43&amp;PID=98&amp;title=switching-mdi-menus#98</guid>
  </item> 
 </channel>
</rss>