<?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 : disable toolbar menu item under Toolbars</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : disable toolbar menu item under Toolbars]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 23:02:31 +0000</pubDate>
  <lastBuildDate>Fri, 22 Oct 2004 09:05:43 +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=767</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[disable toolbar menu item under Toolbars : Make sure the ID for your the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=767&amp;PID=3644&amp;title=disable-toolbar-menu-item-under-toolbars#3644</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 767<br /><strong>Posted:</strong> 22 October 2004 at 9:05am<br /><br />Make sure the ID for your the View-&gt;Toolbars is 59392.&nbsp; If youdo not want the toolbars to be listed automatically, then you will haveto manually add and remove them from your menu and change the ID ofView-&gt;Toolbars to something other than 59392.]]>
   </description>
   <pubDate>Fri, 22 Oct 2004 09:05:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=767&amp;PID=3644&amp;title=disable-toolbar-menu-item-under-toolbars#3644</guid>
  </item> 
  <item>
   <title><![CDATA[disable toolbar menu item under Toolbars : I have an MDI app and am using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=767&amp;PID=2016&amp;title=disable-toolbar-menu-item-under-toolbars#2016</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=390">Joe Brown</a><br /><strong>Subject:</strong> 767<br /><strong>Posted:</strong> 20 May 2004 at 9:13pm<br /><br />I have an MDI app and am using the default menu.  I added a toolbar with the code below:<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />m_pBar = (CXTPToolBar*) pCommandBars-&gt;Add(_T("My bar"), xtpBarTop);<br />if (!m_pBar || !m_pBar-&gt;LoadToolBar(IDR_MYBAR))<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;TRACE0("Failed to create toolbar\n");<br />&nbsp;&nbsp;&nbsp;&nbsp;return -1;<br />}<br /></pre></td></tr></table><br /><br />It appears fine and can be turned on and off.  What I can't figure out is how to disable the menu item.  I parse the menu structure and get command bar for View-&gt;Toolbars, but the only entry is &Toolbar, which is what is in my resource file.  The code above, however, adds any toolbar you add to View-&gt;Toolbars.<br /><br />What I'm trying to do is show/hide a toolbar based upon a pane being visible.  My panes appear in View, and they are being shown/hidden correctly along with the corresponding toolbar, but not the entry under View-&gt;Toolbars.<span style="font-size:10px"><br /><br />Edited by Joe Brown</span>]]>
   </description>
   <pubDate>Thu, 20 May 2004 21:13:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=767&amp;PID=2016&amp;title=disable-toolbar-menu-item-under-toolbars#2016</guid>
  </item> 
 </channel>
</rss>