<?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 menus</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Switching MDI menus]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 25 Apr 2026 01:03:31 +0000</pubDate>
  <lastBuildDate>Sun, 11 Jan 2004 11:02:04 +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=349</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 menus : Hi all, I&amp;#039;m currently converting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=349&amp;PID=776&amp;title=switching-mdi-menus#776</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=306">JonN</a><br /><strong>Subject:</strong> 349<br /><strong>Posted:</strong> 11 January 2004 at 11:02am<br /><br /><P>Hi all,</P><P>I'm currently converting an existing MDI program in&nbsp;Visual&nbsp;Studio 6&nbsp;to use the XTP command bars.&nbsp; My problem is with MDI menus.&nbsp; I need multiple menus to support a range of different docTemplates but it appears that I am limited to just one menu.&nbsp;</P><P>I have read and tried to implement the&nbsp;MDI menu switching as&nbsp;described in the MDI menus sample, but this does not appear to work as expected when I implement the code in my own program.&nbsp;&nbsp;In particular the &nbsp;AssignDocTemplate() and ExcludeDocTemplate() options in the OnCreateControl() function do not actually assign or exclude the various menu items from my one 'master' menu.&nbsp; Regardless of what I try I always get the same menu, the one needed for my default template.&nbsp; It is almost as if the XTP menu is only reset when creating a new document, not when switching between various views of the same document.</P><P>At present I've implemented a switch menu function which is called whenver the doc template changes, much as suggested in the earlier Switching MDI menu posts.&nbsp; This resets the menu to the correct one, much like standard MFC.&nbsp; Although this works, it also prevents any user customisation of the menu bar, which I would also like to implement.&nbsp; Ideally I'd like to use multiple menus, each with their own customisation.</P><P>It would seem that I'm slightly off the mark with this one, any suggestions as to where I'm going wrong?</P><P>Jon<IMG src="http://forum.codejock.com/smileys/smiley5.gif" border="0"></P>]]>
   </description>
   <pubDate>Sun, 11 Jan 2004 11:02:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=349&amp;PID=776&amp;title=switching-mdi-menus#776</guid>
  </item> 
 </channel>
</rss>