<?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 : Hiding &quot;Add or Remove Buttons&quot; from expand button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Hiding &quot;Add or Remove Buttons&quot; from expand button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 09:34:55 +0000</pubDate>
  <lastBuildDate>Tue, 08 Jun 2010 00:11:26 +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=16642</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[Hiding &quot;Add or Remove Buttons&quot; from expand button :  Have a look for a more detailed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58817&amp;title=hiding-add-or-remove-buttons-from-expand-button#58817</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6154">elmue</a><br /><strong>Subject:</strong> 16642<br /><strong>Posted:</strong> 08 June 2010 at 12:11am<br /><br />Have a look for a more detailed discussion of this topic in this manual:<br><a href="http://forum.codejock.com/forum_posts.asp?TID=16791" target="_blank"><strong>How to create a fixed toolbar</strong></a><br>]]>
   </description>
   <pubDate>Tue, 08 Jun 2010 00:11:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58817&amp;title=hiding-add-or-remove-buttons-from-expand-button#58817</guid>
  </item> 
  <item>
   <title><![CDATA[Hiding &quot;Add or Remove Buttons&quot; from expand button : You need something like this for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58811&amp;title=hiding-add-or-remove-buttons-from-expand-button#58811</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 16642<br /><strong>Posted:</strong> 07 June 2010 at 2:38pm<br /><br />You need something like this for MFC version (untested code)<br><br>BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)<br>...<br>&nbsp;&nbsp;&nbsp; ON_XTP_INITCOMMANDSPOPUP()<br>...<br>END_MESSAGE_MAP()<br>...<br>afx_msg void OnInitCommandsPopup(CXTPPopupBar* pComandBar);<br>...<br>void CMainFrame::OnInitCommandsPopup(CXTPPopupBar* pCommandBar)<br>{<br>&nbsp;&nbsp;&nbsp; // get the list of commands for the popup.<br>&nbsp;&nbsp;&nbsp; CXTPControls* pCommandList = pCommandBar-&gt;GetControls();<br><br>&nbsp;&nbsp;&nbsp; // Remove "Add\Remove" menu item from the File menu.<br>&nbsp;&nbsp;&nbsp; CXTPControl* pCommandNew = pCommandList-&gt;FindControl(<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xtpControlButton, XTP_ID_CUSTOMIZE_ADDORREMOVE, TRUE, FALSE);<br>&nbsp;&nbsp;&nbsp; if (pCommandNew)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCommandList-&gt;Remove(pCommandNew);<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br><br>]]>
   </description>
   <pubDate>Mon, 07 Jun 2010 14:38:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58811&amp;title=hiding-add-or-remove-buttons-from-expand-button#58811</guid>
  </item> 
  <item>
   <title><![CDATA[Hiding &quot;Add or Remove Buttons&quot; from expand button : You can do something like this:Private...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58810&amp;title=hiding-add-or-remove-buttons-from-expand-button#58810</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 16642<br /><strong>Posted:</strong> 07 June 2010 at 2:30pm<br /><br />You can do something like this:<br><br>Private Sub CommandBars_InitCommandsPopup(ByVal CommandBar As XtremeCommandBars.ICommandBar)<br>&nbsp;&nbsp;&nbsp; On Error Resume Next<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBar.Controls.Find(, XTP_ID_CUSTOMIZE_ADDORREMOVE, , True).Visible = False<br>End Sub<br><br>OR if you still want the expand button displayed all the time, but don't want add\remove:<br><br>Private Sub CommandBars_InitCommandsPopup(ByVal CommandBar As XtremeCommandBars.ICommandBar)<br>&nbsp;&nbsp;&nbsp; On Error Resume Next<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBar.Controls.Find(, XTP_ID_CUSTOMIZE_ADDORREMOVE, , True).Visible = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not CommandBar.Controls.Find(, XTP_ID_CUSTOMIZE_ADDORREMOVE, , True).Visible Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If CommandBar.Controls.Count = 1 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBar.Controls.Add xtpControlLabel, 1234, "No Options Available", , True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>End Sub<br>]]>
   </description>
   <pubDate>Mon, 07 Jun 2010 14:30:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58810&amp;title=hiding-add-or-remove-buttons-from-expand-button#58810</guid>
  </item> 
  <item>
   <title><![CDATA[Hiding &quot;Add or Remove Buttons&quot; from expand button :  HelloThis answer is wrong.Like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58800&amp;title=hiding-add-or-remove-buttons-from-expand-button#58800</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6154">elmue</a><br /><strong>Subject:</strong> 16642<br /><strong>Posted:</strong> 05 June 2010 at 7:01pm<br /><br />Hello<br><br>This answer is wrong.<br><br>Like Ifoster I also want to remove the "Add or remove buttons" menu entry WITHOUT removing the icons that don't fit into the toolbar.<br>But<br>pCommandBar-&gt;ShowExpandButton(FALSE);<br><br>removes BOTH!<br><br>This is not what I want<br><br><img src="uploads/20100605_185915_RemoveMenu.gif" height="176" width="361" border="0"><br><br>]]>
   </description>
   <pubDate>Sat, 05 Jun 2010 19:01:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58800&amp;title=hiding-add-or-remove-buttons-from-expand-button#58800</guid>
  </item> 
  <item>
   <title><![CDATA[Hiding &quot;Add or Remove Buttons&quot; from expand button : do you mean to hide the expending...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58357&amp;title=hiding-add-or-remove-buttons-from-expand-button#58357</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6046">sunceenjoy</a><br /><strong>Subject:</strong> 16642<br /><strong>Posted:</strong> 07 May 2010 at 12:12am<br /><br /><P>do you mean to hide the expending menu??</P><DIV>&nbsp;</DIV><DIV><DIV =Element11><DIV =Element10><P =Element10>Call this method to show/hide expand button of toolbar</P></DIV></DIV><A name=C++></A><DIV =Element101><DIV =Element100><PRE =Element100><strong>void</strong> ShowExpandButton(    BOOL bShowExpandButton);</PRE></DIV></DIV></DIV>]]>
   </description>
   <pubDate>Fri, 07 May 2010 00:12:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58357&amp;title=hiding-add-or-remove-buttons-from-expand-button#58357</guid>
  </item> 
  <item>
   <title><![CDATA[Hiding &quot;Add or Remove Buttons&quot; from expand button : There was a post in the ActiveX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58251&amp;title=hiding-add-or-remove-buttons-from-expand-button#58251</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6064">lfoster</a><br /><strong>Subject:</strong> 16642<br /><strong>Posted:</strong> 28 April 2010 at 5:35am<br /><br />There was a post in the ActiveX / COM forum asking the same thing but I thought maybe the solution they were using was different as I have tried it with no success. For ref see http://forum.codejock.com/forum_posts.asp?TID=16196<br /><br />They suggested using the bShowExpandButtonAlways option of the command bars but I tried this and I just get the usual expand button with the "Add or Remove Buttons" menu item.<br /><br />I want to just have the expand button with nothing but the toolbar buttons that didn't fit on the toolbar itself.<br /><br />Can anyone help?<br /><br />Thanks,<br /><br />Lewis]]>
   </description>
   <pubDate>Wed, 28 Apr 2010 05:35:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16642&amp;PID=58251&amp;title=hiding-add-or-remove-buttons-from-expand-button#58251</guid>
  </item> 
 </channel>
</rss>