<?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 : Problem with ListBox in the RibbonBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Problem with ListBox in the RibbonBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 29 Apr 2026 01:32:59 +0000</pubDate>
  <lastBuildDate>Wed, 20 Dec 2006 12:42: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=5848</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[Problem with ListBox in the RibbonBar : Solved the problem by using MoveWindow(CRect(0,0,0,0))...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18415&amp;title=problem-with-listbox-in-the-ribbonbar#18415</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2498">Tsenoh</a><br /><strong>Subject:</strong> 5848<br /><strong>Posted:</strong> 20 December 2006 at 12:42pm<br /><br />Solved the problem by using MoveWindow(CRect(0,0,0,0)) when the control should be hidden. Not the perfect solution, but it works.<br><br>Thanks for your time, Oleg! I appriciate it!<br><br>Bojan Hrnkas<br>]]>
   </description>
   <pubDate>Wed, 20 Dec 2006 12:42:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18415&amp;title=problem-with-listbox-in-the-ribbonbar#18415</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with ListBox in the RibbonBar : Code:void CMyXTPControlListBox::SetRect(CRect...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18413&amp;title=problem-with-listbox-in-the-ribbonbar#18413</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2498">Tsenoh</a><br /><strong>Subject:</strong> 5848<br /><strong>Posted:</strong> 20 December 2006 at 10:58am<br /><br />Code:<br><br><font face="Courier New, Courier, mono" size="2">void CMyXTPControlListBox::SetRect(CRect rcControl)<br>{<br>&nbsp;&nbsp;&nbsp; ASSERT_VALID(this);<br><br>&nbsp;&nbsp;&nbsp; if (m_rcControl == rcControl &amp;&amp; m_pListBox-&gt;GetParent() == m_pParent)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; m_rcControl = rcControl;<br><br>&nbsp;&nbsp;&nbsp; m_pListBox-&gt;EnableWindow(GetEnabled());<br><br>&nbsp;&nbsp;&nbsp; m_pListBox-&gt;ModifyStyle(WS_POPUP, WS_CHILD);<br>&nbsp;&nbsp;&nbsp; m_pListBox-&gt;SetParent(m_pParent);<br>&nbsp;&nbsp;&nbsp; m_pListBox-&gt;MoveWindow(rcControl);<br>&nbsp;&nbsp;&nbsp; m_pListBox-&gt;SetWindowPos(0, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | (!IsVisible() ? SWP_HIDEWINDOW : SWP_SHOWWINDOW));<br>}<br><br>void CMyXTPControlListBox::SetHideFlags(DWORD dwFlags) {<br>&nbsp;&nbsp;&nbsp; m_dwHideFlags = dwFlags;<br>&nbsp;&nbsp;&nbsp; if (m_dwHideFlags != xtpNoHide)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (m_pListBox &amp;&amp; m_pListBox-&gt;GetSafeHwnd())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pListBox-&gt;SetWindowPos(0, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_HIDEWINDOW);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DelayLayoutParent();<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (m_pListBox &amp;&amp; m_pListBox-&gt;GetSafeHwnd())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pListBox-&gt;SetWindowPos(0, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_SHOWWINDOW);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DelayLayoutParent();<br>&nbsp;&nbsp;&nbsp; }<br>}</font><br><br>The code for hiding is executed properly, but the control just won't go away.<br>]]>
   </description>
   <pubDate>Wed, 20 Dec 2006 10:58:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18413&amp;title=problem-with-listbox-in-the-ribbonbar#18413</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with ListBox in the RibbonBar : I have. This is my code:  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18412&amp;title=problem-with-listbox-in-the-ribbonbar#18412</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2498">Tsenoh</a><br /><strong>Subject:</strong> 5848<br /><strong>Posted:</strong> 20 December 2006 at 10:55am<br /><br />I have. This is my code:<br><br>]]>
   </description>
   <pubDate>Wed, 20 Dec 2006 10:55:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18412&amp;title=problem-with-listbox-in-the-ribbonbar#18412</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with ListBox in the RibbonBar : check sources of CXTPControlCustom.  You...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18409&amp;title=problem-with-listbox-in-the-ribbonbar#18409</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5848<br /><strong>Posted:</strong> 20 December 2006 at 10:14am<br /><br />check sources of CXTPControlCustom.<DIV>&nbsp;</DIV><DIV>You need override</DIV><DIV><BR>void CXTPControlCustom::SetHideFlags(DWORD dwFlags)</DIV><DIV>and</DIV><DIV>void CXTPControlCustom::SetRect(CRect rcControl)<BR></DIV>]]>
   </description>
   <pubDate>Wed, 20 Dec 2006 10:14:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18409&amp;title=problem-with-listbox-in-the-ribbonbar#18409</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with ListBox in the RibbonBar : Sorry, can&amp;#039;t do it.The problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18406&amp;title=problem-with-listbox-in-the-ribbonbar#18406</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2498">Tsenoh</a><br /><strong>Subject:</strong> 5848<br /><strong>Posted:</strong> 20 December 2006 at 9:26am<br /><br />Sorry, can't do it.<br>The problem is that I already have a very complicated control inherited from CListCtrl, that allready has all functionality I need. I created my own class CMyXTPControlListBox : public CXTPControl, that has my CMyListCtrl control instead of the original one.<br>Maybe you could shortly explain me the mechanism inside a control that hides it when a tab is switched? That would be great!<br><br>Thanks!<br><br>Sincerely,<br><br>Bojan Hrnkas<br>]]>
   </description>
   <pubDate>Wed, 20 Dec 2006 09:26:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18406&amp;title=problem-with-listbox-in-the-ribbonbar#18406</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with ListBox in the RibbonBar : Hi, I very recommend you use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18401&amp;title=problem-with-listbox-in-the-ribbonbar#18401</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5848<br /><strong>Posted:</strong> 20 December 2006 at 7:20am<br /><br />Hi,<DIV>I very recommend you use Galleries instead.</DIV>]]>
   </description>
   <pubDate>Wed, 20 Dec 2006 07:20:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18401&amp;title=problem-with-listbox-in-the-ribbonbar#18401</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with ListBox in the RibbonBar : Hi!I have added a listbox to the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18398&amp;title=problem-with-listbox-in-the-ribbonbar#18398</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2498">Tsenoh</a><br /><strong>Subject:</strong> 5848<br /><strong>Posted:</strong> 20 December 2006 at 5:41am<br /><br />Hi!<br><br>I have added a listbox to the ribbonbar, but there are some issues with it. When I switch to another tab, the listbox stays on the top of other controls, where it should dissapear. The ListBox is not drop-down. It is there at all times. It is also the only control in a group, and for the time, the only one in the tab.<br><br>Any ideas? Or a sample how a ListBox can be used in a Ribbon?<br><br>Thanks,<br><br>Bojan<br>]]>
   </description>
   <pubDate>Wed, 20 Dec 2006 05:41:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5848&amp;PID=18398&amp;title=problem-with-listbox-in-the-ribbonbar#18398</guid>
  </item> 
 </channel>
</rss>