<?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 : Add or Remove buttons disabled?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Add or Remove buttons disabled?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:43:15 +0000</pubDate>
  <lastBuildDate>Wed, 22 Apr 2015 04:18:53 +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=22564</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[Add or Remove buttons disabled? : Yes that code is there otherwise...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22564&amp;PID=73317&amp;title=add-or-remove-buttons-disabled#73317</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8841">bharper</a><br /><strong>Subject:</strong> 22564<br /><strong>Posted:</strong> 22 April 2015 at 4:18am<br /><br />Yes that code is there otherwise the customize options wouldn't even display. I have a sample project i can send if you want to see the problem?<div><br></div><div>Kind regards,</div><div>Brian</div>]]>
   </description>
   <pubDate>Wed, 22 Apr 2015 04:18:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22564&amp;PID=73317&amp;title=add-or-remove-buttons-disabled#73317</guid>
  </item> 
  <item>
   <title><![CDATA[Add or Remove buttons disabled? : Hi Brian Harper,Make sure you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22564&amp;PID=73304&amp;title=add-or-remove-buttons-disabled#73304</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8848">mcmastl</a><br /><strong>Subject:</strong> 22564<br /><strong>Posted:</strong> 21 April 2015 at 2:17pm<br /><br /><span style="line-height: 16.7999992370605px;">Hi Brian Harper,</span><br style="line-height: 16.7999992370605px;"><span style="line-height: 16.7999992370605px;">Make sure you have included the CommandBars message handlers in your .CPP file, for example:</span><br style="line-height: 16.7999992370605px;"><br style="line-height: 16.7999992370605px;"><span style="line-height: 16.7999992370605px;">ON_COMMAND(XTP_ID_CUSTOMIZE, OnCustomize)</span><br style="line-height: 16.7999992370605px;"><br style="line-height: 16.7999992370605px;"><span style="line-height: 16.7999992370605px;">and&nbsp;</span><br style="line-height: 16.7999992370605px;"><br style="line-height: 16.7999992370605px;"><div style="line-height: 16.7999992370605px;">void CMainFrame::OnCustomize()</div><div style="line-height: 16.7999992370605px;">{</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>// Get a pointer to the command bars object.</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>CXTPCommandBars* pCommandBars = GetCommandBars();</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>if (pCommandBars == NULL)</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">		</span>return;</div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>// Instantiate the customize dialog.</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>CXTPCustomizeSheet dlg(pCommandBars);</div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>// Add the options page to the customize dialog.</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>CXTPCustomizeOptionsPage pageOptions(&amp;dlg);</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>dlg.AddPage(&amp;pageOptions);</div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>// Add the commands page to the customize dialog.</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>CXTPCustomizeCommandsPage* pPageCommands = dlg.GetCommandsPage();</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>pPageCommands-&gt;AddCategories(IDR_MAINFRAME, TRUE);</div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>// Initialize the commands page page.</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>pPageCommands-&gt;InsertAllCommandsCategory();</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>pPageCommands-&gt;InsertBuiltInMenus(IDR_MAINFRAME);</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>pPageCommands-&gt;InsertNewMenuCategory();</div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>// Display the customize dialog.</div><div style="line-height: 16.7999992370605px;"><span ="Apple-tab-span" style="white-space: pre;">	</span>dlg.DoModal();</div><div style="line-height: 16.7999992370605px;">}</div><div style="line-height: 16.7999992370605px;"><br></div><div style="line-height: 16.7999992370605px;">if you are still having trouble please let us know.</div>]]>
   </description>
   <pubDate>Tue, 21 Apr 2015 14:17:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22564&amp;PID=73304&amp;title=add-or-remove-buttons-disabled#73304</guid>
  </item> 
  <item>
   <title><![CDATA[Add or Remove buttons disabled? :   Hello,  I have just purchased...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22564&amp;PID=73171&amp;title=add-or-remove-buttons-disabled#73171</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8841">bharper</a><br /><strong>Subject:</strong> 22564<br /><strong>Posted:</strong> 28 March 2015 at 6:14am<br /><br /><DIV></DIV><DIV></DIV><DIV></DIV>Hello,<DIV>&nbsp;</DIV><DIV>I have just purchased the commandbars control and am having problems with the customising. The menu items on the Add and Remove sections are disabled. Can you please advise how I enable these buttons?</DIV><DIV>&nbsp;</DIV><DIV>Screen shot below.</DIV><DIV>&nbsp;</DIV><DIV>kind regards,</DIV><DIV>Brian Harper</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/8841/Untitled.png" height="618" width="744" border="0" /></DIV>]]>
   </description>
   <pubDate>Sat, 28 Mar 2015 06:14:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22564&amp;PID=73171&amp;title=add-or-remove-buttons-disabled#73171</guid>
  </item> 
 </channel>
</rss>