<?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 : Possible bug using CXTPCommandBars::GetToolBar()</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Possible bug using CXTPCommandBars::GetToolBar()]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 25 Apr 2026 02:48:31 +0000</pubDate>
  <lastBuildDate>Thu, 28 Dec 2006 15:25:25 +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=5925</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[Possible bug using CXTPCommandBars::GetToolBar() : Hi Oleg; As I mentioned in my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5925&amp;PID=18684&amp;title=possible-bug-using-cxtpcommandbarsgettoolbar#18684</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 5925<br /><strong>Posted:</strong> 28 December 2006 at 3:25pm<br /><br />Hi Oleg;<DIV>As I mentioned in my previous post, the toolbar and the menubar of the MDI child window have both the same ID. The toolbar is a child of the mainframe.</DIV><DIV>When calling the CXTPCommandBars::GetToolBar() the pointer returned is a pointer to the menubar of the MDI child and not the pointer to the toolbar.</DIV><DIV>Nevertheless I will try to isolate the problem - since it happens in a huge app - and create a sample application. Perhaps I can reproduce it with one </DIV><DIV>of your sample applications... </DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 28 Dec 2006 15:25:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5925&amp;PID=18684&amp;title=possible-bug-using-cxtpcommandbarsgettoolbar#18684</guid>
  </item> 
  <item>
   <title><![CDATA[Possible bug using CXTPCommandBars::GetToolBar() : Needs your code to see what you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5925&amp;PID=18682&amp;title=possible-bug-using-cxtpcommandbarsgettoolbar#18682</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5925<br /><strong>Posted:</strong> 28 December 2006 at 3:16pm<br /><br /><P>Needs your code to see what you do. Can you attach it in issuetrack? ANywas as you can see GetToolBar it loops all toolbars and checks its id. Problem can be only if 2 toolbars have same id.</P>]]>
   </description>
   <pubDate>Thu, 28 Dec 2006 15:16:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5925&amp;PID=18682&amp;title=possible-bug-using-cxtpcommandbarsgettoolbar#18682</guid>
  </item> 
  <item>
   <title><![CDATA[Possible bug using CXTPCommandBars::GetToolBar() : Hi Oleg;  I disagree. My IDR_MYCHILD...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5925&amp;PID=18671&amp;title=possible-bug-using-cxtpcommandbarsgettoolbar#18671</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 5925<br /><strong>Posted:</strong> 28 December 2006 at 4:35am<br /><br />Hi Oleg;<DIV>&nbsp;</DIV><DIV>I disagree. My IDR_MYCHILD has a value of 2. I'm asking whether menubars and toolbars both share the same container inside the CXTPCommandBars object? To remember, my MDI child has its own menu and the toolbar used to act on this MDI child is created in MDI mainframe on app startup. Both controls&nbsp;have the same ID in common (IDR_MYCHILD).</DIV>]]>
   </description>
   <pubDate>Thu, 28 Dec 2006 04:35:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5925&amp;PID=18671&amp;title=possible-bug-using-cxtpcommandbarsgettoolbar#18671</guid>
  </item> 
  <item>
   <title><![CDATA[Possible bug using CXTPCommandBars::GetToolBar() : Hi,  MenuBar has ID 1. So I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5925&amp;PID=18667&amp;title=possible-bug-using-cxtpcommandbarsgettoolbar#18667</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5925<br /><strong>Posted:</strong> 28 December 2006 at 2:26am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>MenuBar has ID 1. So I think IDR_MYCHILD is also declared as 1 and they have same Id....</DIV>]]>
   </description>
   <pubDate>Thu, 28 Dec 2006 02:26:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5925&amp;PID=18667&amp;title=possible-bug-using-cxtpcommandbarsgettoolbar#18667</guid>
  </item> 
  <item>
   <title><![CDATA[Possible bug using CXTPCommandBars::GetToolBar() : Hi; I think I found a bug in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5925&amp;PID=18661&amp;title=possible-bug-using-cxtpcommandbarsgettoolbar#18661</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 5925<br /><strong>Posted:</strong> 27 December 2006 at 2:40pm<br /><br /><P>Hi;</P><DIV>I think I found a bug in CXTPCommandBars::GetToolBar(). What did I do?</DIV><DIV>I created a MDI child window and a additional toolbar in main frame. The child&nbsp;has its own menu bar and the previously mentioned toolbar with the same resource ID (IDR_MYCHILD).</DIV><DIV>The menubar and toolbar are both successfully created, but when trying to access the toolbar in code by using CXTPCommandBars::GetToolBar(IDR_MYCHILD) it always returns&nbsp;a pointer to the menubar. </DIV><DIV>&nbsp;</DIV><DIV>Since I'm explicitely calling GetToolBar() I expect a pointer to the toolbar to be returned!</DIV><DIV>&nbsp;</DIV><DIV>Maybe&nbsp;I missed something due to lack of documentation. So perhaps it's not a bug and I have to access the toolbar in a different way.</DIV><DIV>&nbsp;</DIV><DIV>Any comment to this is very welcome...</DIV>]]>
   </description>
   <pubDate>Wed, 27 Dec 2006 14:40:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5925&amp;PID=18661&amp;title=possible-bug-using-cxtpcommandbarsgettoolbar#18661</guid>
  </item> 
 </channel>
</rss>