<?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 : &quot;expand&quot;-button shown when not needed</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : &quot;expand&quot;-button shown when not needed]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 20:02:30 +0000</pubDate>
  <lastBuildDate>Tue, 22 Sep 2009 10:53:19 +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=15217</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[&quot;expand&quot;-button shown when not needed : lol...  ShowExpandButton(FALSE);...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15217&amp;PID=53345&amp;title=expandbutton-shown-when-not-needed#53345</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 15217<br /><strong>Posted:</strong> 22 September 2009 at 10:53am<br /><br />lol...<DIV>&nbsp;</DIV><DIV>ShowExpandButton(FALSE); ... :P</DIV>]]>
   </description>
   <pubDate>Tue, 22 Sep 2009 10:53:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15217&amp;PID=53345&amp;title=expandbutton-shown-when-not-needed#53345</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;expand&quot;-button shown when not needed : I have a toolbar in one of my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15217&amp;PID=53310&amp;title=expandbutton-shown-when-not-needed#53310</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 15217<br /><strong>Posted:</strong> 21 September 2009 at 10:30am<br /><br /><P>I have a toolbar in one of my panes. The last button contains a label which is updated every now and then. For some reason, the "expand-dropdown" is shown even though there is plenty of space left... why?</P><DIV></DIV><DIV></DIV><img src="uploads/20090921_102401_strange_dropdow.PNG" border="0"><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Relevant creation code:</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">int CMyPane::OnCreate(LPCREATESTRUCT lpCreateStruct)<BR>{<BR>&nbsp;&nbsp;&nbsp; if (CWnd::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; InitCommandBars();</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; m_wndToolBar.SetCommandBars(pCommandBars);</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; if (!m_wndToolBar.CreateToolBar(WS_TABSTOP | WS_VISIBLE | WS_CHILD | CBRS_TOOLTIPS, this) || !m_wndToolBar.LoadToolBar(IDR_PANE_CASE_EXPLORER))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; m_wndToolBar.SetOwner(AfxGetMainWnd());</FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>And when updating the caption of the last item:</DIV><DIV><FONT color=#010001 size=2><FONT color=#010001 size=2><FONT face="Courier New, Courier, mono"><DIV>&nbsp;</DIV><DIV>pLabel</FONT></FONT></FONT><FONT face="Courier New, Courier, mono"><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>SetCaption</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pszCaption</FONT></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">);</DIV><DIV></FONT></FONT><FONT face="Courier New, Courier, mono"><FONT color=#010001 size=2><FONT color=#010001 size=2>pLabel</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>SetTooltip</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pszTooltip</FONT></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">);</FONT></FONT></DIV><DIV><FONT face="Courier New, Courier, mono"><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPClientRect</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>rc</FONT></FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">);</FONT></FONT></DIV><DIV><FONT color=#010001 size=2 face="Courier New"></FONT>&nbsp;</DIV><DIV><FONT color=#010001 size=2 face="Courier New">// Also called in OnWindowPosChanged():</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">CSize sz = m_wndToolBar.CalcDockingLayout(cx, LM_HIDEWRAP | LM_HORZDOCK | LM_HORZ | LM_COMMIT);<BR>m_wndToolBar.MoveWindow(0, 0, cx, sz.cy);<BR>m_wndToolBar.Invalidate(FALSE);</FONT></DIV></DIV>]]>
   </description>
   <pubDate>Mon, 21 Sep 2009 10:30:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15217&amp;PID=53310&amp;title=expandbutton-shown-when-not-needed#53310</guid>
  </item> 
 </channel>
</rss>