<?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 : Switch off customization arrow</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Switch off customization arrow]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 13:45:30 +0000</pubDate>
  <lastBuildDate>Thu, 22 Mar 2007 07:58:21 +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=6704</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[Switch off customization arrow : By debugging XTP code, I&amp;#039;ve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6704&amp;PID=21351&amp;title=switch-off-customization-arrow#21351</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2014">akur</a><br /><strong>Subject:</strong> 6704<br /><strong>Posted:</strong> 22 March 2007 at 7:58am<br /><br />By debugging XTP code, I've just found out that the triangle at the beginning was an "ExpandButton" <font color="#0000ff"><b>added automatically by XTP</b></font> when the toolbar was created. It can be avoided by a single line:<br><br>&nbsp;&nbsp;&nbsp; <font face="Courier New, Courier, mono">m_pCommandBars-&gt;GetCommandBarsOptions()-&gt;<b><font color="#0000ff">bShowExpandButtonAlways</font></b> = FALSE;</font><br><br>Now the toolbar has only those items I have really added into it.<br>But I still wonder why no other windows in my project have this problem? (I use XTP toolbars in several other, non-XTP windows, too).<br><br><br>]]>
   </description>
   <pubDate>Thu, 22 Mar 2007 07:58:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6704&amp;PID=21351&amp;title=switch-off-customization-arrow#21351</guid>
  </item> 
  <item>
   <title><![CDATA[Switch off customization arrow : Hello,I&amp;#039;ve successfully added...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6704&amp;PID=21350&amp;title=switch-off-customization-arrow#21350</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2014">akur</a><br /><strong>Subject:</strong> 6704<br /><strong>Posted:</strong> 22 March 2007 at 6:40am<br /><br />Hello,<br><br>I've successfully added an XTP toolbar to a plain CWnd (a non-XTP window), but I cannot switch off the toolbar customization arrow. Does anybody know <font color="#0000ff"><b>how do I get rid of this arrow?<br><br><img src="uploads/20070322_063218_XTP_Toolbar_Cus.JPG" height="66" width="279" border="0"><br><br></b><font color="#000000">I use this code in my CWnd::OnCreate():</font><b><br></b><font color="#000000"><br>&nbsp;&nbsp;&nbsp; m_pCommandBars =&nbsp; (CXTPCommandBars*) (RUNTIME_CLASS(CXTPCommandBars))-&gt;CreateObject();<br>&nbsp;&nbsp;&nbsp; ASSERT(m_pCommandBars);<br>&nbsp;&nbsp;&nbsp; m_pCommandBars-&gt;SetSite(this);<br>&nbsp;&nbsp;&nbsp; m_pCommandBars-&gt;EnableDocking();<br><br>&nbsp;&nbsp;&nbsp; m_pMyToolbar = m_pCommandBars-&gt;Add(_T("MyToolbar"), xtpBarBottom);<br>&nbsp;&nbsp;&nbsp; </font></font><font color="#0000ff"><font color="#000000">m_pMyToolbar</font></font><font color="#0000ff"><font color="#000000">-&gt;ModifyBarStyle(CBRS_GRIPPER, 0);<br>&nbsp;&nbsp;&nbsp; </font></font><font color="#0000ff"><font color="#000000">m_pMyToolbar</font></font><font color="#0000ff"><font color="#000000">-&gt;ShowExpandButton(FALSE);<br>&nbsp;&nbsp;&nbsp; </font></font><font color="#0000ff"><font color="#000000">m_pMyToolbar</font></font><font color="#0000ff"><font color="#000000">-&gt;SetFlags(0, xtpFlagAlignBottom|xtpFlagStretched);<br>&nbsp;&nbsp;&nbsp; </font></font><font color="#0000ff"><font color="#000000">m_pMyToolbar</font></font><font color="#0000ff"><font color="#000000">-&gt;SetContextMenuPresent(FALSE);<br>&nbsp;&nbsp;&nbsp; </font></font><font color="#0000ff"><font color="#000000">m_pMyToolbar</font></font><font color="#0000ff"><font color="#000000">-&gt;SetCustomizeDialogPresent(FALSE);<br>&nbsp;&nbsp;&nbsp; </font></font><font color="#0000ff"><font color="#000000">m_pMyToolbar</font></font><font color="#0000ff"><font color="#000000">-&gt;GetPaintManager()-&gt;m_bFlatToolBar = TRUE;<br><br>&nbsp;&nbsp;&nbsp; m_pFirstButton = new CXTPControlButton();<br>&nbsp;&nbsp;&nbsp; </font></font><font color="#0000ff"><font color="#000000">m_pFirstButton</font></font><font color="#0000ff"><font color="#000000">-&gt;SetFlags(xtpFlagManualUpdate);</font></font><font color="#0000ff"><font color="#000000"><br>&nbsp;&nbsp;&nbsp; m_pFirstButton</font></font><font color="#0000ff"><font color="#000000">-&gt;SetID(IDC_MY_FIRST_BUTTON);<br>&nbsp;&nbsp;&nbsp; if (hCustomIcon)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></font><font color="#0000ff"><font color="#000000">m_pFirstButton</font></font><font color="#0000ff"><font color="#000000">-&gt;SetCustomIcon(hCustomIcon);<br>&nbsp;&nbsp;&nbsp; m_pMyToolbar-&gt;GetControls()-&gt;Add(</font></font><font color="#0000ff"><font color="#000000">m_pFirstButton</font></font><font color="#0000ff"><font color="#000000">);<br><br>&nbsp;&nbsp;&nbsp; // ... adding some other buttons just like this one<br><br><br></font></font>]]>
   </description>
   <pubDate>Thu, 22 Mar 2007 06:40:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6704&amp;PID=21350&amp;title=switch-off-customization-arrow#21350</guid>
  </item> 
 </channel>
</rss>