<?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 : What does AddCategories(CXTPControls* ) do?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : What does AddCategories(CXTPControls* ) do?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 02 Jun 2026 23:28:03 +0000</pubDate>
  <lastBuildDate>Thu, 13 Aug 2009 01:56:10 +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=14945</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[What does AddCategories(CXTPControls* ) do? : Hi,  See code in \Samples\CommandBars\CustomThemes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14945&amp;PID=51918&amp;title=what-does-addcategoriescxtpcontrols-do#51918</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14945<br /><strong>Posted:</strong> 13 August 2009 at 1:56am<br /><br /><P>Hi,</P><DIV>&nbsp;</DIV><DIV>See code in \Samples\CommandBars\CustomThemes&nbsp; it adds additonal buttons to command page.</DIV>]]>
   </description>
   <pubDate>Thu, 13 Aug 2009 01:56:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14945&amp;PID=51918&amp;title=what-does-addcategoriescxtpcontrols-do#51918</guid>
  </item> 
  <item>
   <title><![CDATA[What does AddCategories(CXTPControls* ) do? :  Based on your response, I put...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14945&amp;PID=51894&amp;title=what-does-addcategoriescxtpcontrols-do#51894</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5336">tralfaz</a><br /><strong>Subject:</strong> 14945<br /><strong>Posted:</strong> 12 August 2009 at 9:57am<br /><br />Based on your response, I put your line of code here:<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPToolBar* pTBar = pCommandBars-&gt;GetToolBar(IDR_CUSTOM_TOOLBAR);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pTBar) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPControls* pControls = pTBar-&gt;GetControls();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControls-&gt;GetAt(0)-&gt;SetCategory("Category");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCommands-&gt;AddCategories(pControls);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>Of course it didn't work because I need more information.<br><br>1. There is an AddCategories(CXTPControls* pControls)<br>2. What does it do?<br>3. Can I use it to display controls from a toolbar?<br><br>Here's the problem. Your All Commands only show the commands from a Menu. I have custom commands (not in the menu) the user can create inside the program. How do I get those to show in Customize? One way would be to expose the controls from the Custom Toolbar.<br>]]>
   </description>
   <pubDate>Wed, 12 Aug 2009 09:57:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14945&amp;PID=51894&amp;title=what-does-addcategoriescxtpcontrols-do#51894</guid>
  </item> 
  <item>
   <title><![CDATA[What does AddCategories(CXTPControls* ) do? : why &amp;#034;Controls&amp;#034; ?  Your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14945&amp;PID=51882&amp;title=what-does-addcategoriescxtpcontrols-do#51882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14945<br /><strong>Posted:</strong> 12 August 2009 at 3:07am<br /><br />why "Controls" ?<DIV>&nbsp;</DIV><DIV>Your controls in toolbar doesn't have Category assigned. Try pControls-&gt;GetAt(0)-&gt;SetCategory("Category");</DIV>]]>
   </description>
   <pubDate>Wed, 12 Aug 2009 03:07:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14945&amp;PID=51882&amp;title=what-does-addcategoriescxtpcontrols-do#51882</guid>
  </item> 
  <item>
   <title><![CDATA[What does AddCategories(CXTPControls* ) do? :   When I added it, nothing showed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14945&amp;PID=51844&amp;title=what-does-addcategoriescxtpcontrols-do#51844</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5336">tralfaz</a><br /><strong>Subject:</strong> 14945<br /><strong>Posted:</strong> 10 August 2009 at 9:12pm<br /><br />When I added it, nothing showed up differently in the customize dialog. I expected a new tab category called Controls showing the buttons in the list<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPCustomizeCommandsPage* pCommands = dlg.GetCommandsPage();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPToolBar* pTBar = pCommandBars-&gt;GetToolBar(IDR_CUSTOM_TOOLBAR);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pTBar) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPControls* pControls = pTBar-&gt;GetControls();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCommands-&gt;AddCategories(pControls);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>]]>
   </description>
   <pubDate>Mon, 10 Aug 2009 21:12:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14945&amp;PID=51844&amp;title=what-does-addcategoriescxtpcontrols-do#51844</guid>
  </item> 
 </channel>
</rss>