<?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 : toolbar button with subitems</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : toolbar button with subitems]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 15:28:51 +0000</pubDate>
  <lastBuildDate>Thu, 19 Apr 2007 03:55: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=6918</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[toolbar button with subitems : thanks, it works.  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6918&amp;PID=22127&amp;title=toolbar-button-with-subitems#22127</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1715">spelhatre</a><br /><strong>Subject:</strong> 6918<br /><strong>Posted:</strong> 19 April 2007 at 3:55am<br /><br />thanks, it works.]]>
   </description>
   <pubDate>Thu, 19 Apr 2007 03:55:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6918&amp;PID=22127&amp;title=toolbar-button-with-subitems#22127</guid>
  </item> 
  <item>
   <title><![CDATA[toolbar button with subitems : Hello, try something like:  CXTPControlPopup*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6918&amp;PID=22108&amp;title=toolbar-button-with-subitems#22108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6918<br /><strong>Posted:</strong> 18 April 2007 at 3:07pm<br /><br /><DIV>Hello,</DIV><DIV>try something like:</DIV><DIV>&nbsp;</DIV><DIV>CXTPControlPopup* pControlPopup = (CXTPControlPopup*)<strong>pToolbar-&gt;GetControls()-&gt;Add( xtpControlSplitButtonPopup</strong>, 10 /*cmd id*/);<BR>CXTPControl* q = pControlPopup-&gt;<strong>GetCommandBar</strong>()-&gt;GetControls()-&gt;Add( xtpControlButton, 10);<BR></DIV>]]>
   </description>
   <pubDate>Wed, 18 Apr 2007 15:07:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6918&amp;PID=22108&amp;title=toolbar-button-with-subitems#22108</guid>
  </item> 
  <item>
   <title><![CDATA[toolbar button with subitems : I want to dynamically create a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6918&amp;PID=22098&amp;title=toolbar-button-with-subitems#22098</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1715">spelhatre</a><br /><strong>Subject:</strong> 6918<br /><strong>Posted:</strong> 18 April 2007 at 9:32am<br /><br />I want to dynamically create a toolbar button with subitems in a dialogbox.<br>This is my code (pToolbar is my CXTPToolbar object):<br><br>CXTPControlPopup* pControlPopup = CXTPControlPopup::CreateControlPopup(xtpControlSplitButtonPopup);<br>pToolbar-&gt;GetControls()-&gt;Add( pControlPopup, 10 /*cmd id*/);<br>CXTPControl* q = pControlPopup-&gt;GetControls()-&gt;Add( xtpControlButton, 10);<br>&nbsp;q-&gt;SetCaption( "hello1");<br>&nbsp;q = pControlPopup-&gt;GetControls()-&gt;Add( xtpControlButton, 10 );<br>&nbsp;q-&gt;SetCaption( "hello2");&nbsp;&nbsp; <br>pToolbar -&gt;GetParent()-&gt;RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 11);<br><br>With this code, I have my button with the dropdown arrow (call it&nbsp; B1).<br>But items "hello1" and "hello2" and not subitems or B1 but are also buttons in the toolbar.<br>And I cannot use  pControlPopup-&gt;GetCommandBar() object because it returns a NULL pointer.<br>How to do this?<br>&nbsp;thanks<br><br>]]>
   </description>
   <pubDate>Wed, 18 Apr 2007 09:32:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6918&amp;PID=22098&amp;title=toolbar-button-with-subitems#22098</guid>
  </item> 
 </channel>
</rss>