<?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 : CXTPC&#111;ntrolComboBox and Sorting</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPC&#111;ntrolComboBox and Sorting]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 08:09:49 +0000</pubDate>
  <lastBuildDate>Wed, 05 Oct 2005 14:57:58 +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=2975</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[CXTPC&#111;ntrolComboBox and Sorting : Any idea when a version will be...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2975&amp;PID=8999&amp;title=cxtpcontrolcombobox-and-sorting#8999</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1318">csturg</a><br /><strong>Subject:</strong> 2975<br /><strong>Posted:</strong> 05 October 2005 at 2:57pm<br /><br /><P>Any idea when a version will be released that contains this sorting change?</P><P>Thanks, Craig</P>]]>
   </description>
   <pubDate>Wed, 05 Oct 2005 14:57:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2975&amp;PID=8999&amp;title=cxtpcontrolcombobox-and-sorting#8999</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPC&#111;ntrolComboBox and Sorting : Added for next, release.  To...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2975&amp;PID=8892&amp;title=cxtpcontrolcombobox-and-sorting#8892</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2975<br /><strong>Posted:</strong> 30 September 2005 at 11:47am<br /><br /><P>Added for next, release. </P><P>To prevent fixing your application for next release,</P><P>I recommend change it back and to add:</P><P>void ModifyListBoxStyle(DWORD dwRemove, DWORD dwAdd)</P><P>void CXTPControlComboBox::ModifyListBoxStyle(DWORD dwRemove, DWORD dwAdd)<BR>{<BR>&nbsp;if (IsValidList())<BR>&nbsp;{&nbsp;<BR>&nbsp;&nbsp;CXTPControlComboBoxList* pComboBoxList = ((CXTPControlComboBoxList*)m_pCommandBar);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;pComboBoxList-&gt;m_dwStyle |= dwAdd;<BR>&nbsp;&nbsp;pComboBoxList-&gt;m_dwStyle &amp;= ~dwRemove;</P><P>&nbsp;&nbsp;pComboBoxList-&gt;DestroyWindow();<BR>&nbsp;&nbsp;pComboBoxList-&gt;CreateListBox();<BR>&nbsp;}<BR>}<BR></P><P>&nbsp;</P><P>And to fix CreateListBox as</P><P>void CXTPControlComboBoxList::CreateListBox()<BR>{<BR>&nbsp;CreateEx(WS_EX_STATICEDGE | WS_EX_TOOLWINDOW, _T("LISTBOX"), _T(""), <BR>&nbsp;&nbsp;WS_POPUP | WS_VSCROLL | WS_BORDER | WS_CLIPCHILDREN | m_dwStyle, CRect(0, 0, 0, 0), 0, 0);<BR>}<BR></P><P>Usage:</P><P>&nbsp;</P><P>&nbsp;&nbsp;&nbsp;CXTPControlComboBox* pComboFind = (CXTPControlComboBox*)CXTPControlComboBox::CreateObject();<BR>&nbsp; <strong>pComboFind-&gt;ModifyListBoxStyle(0, LBS_SORT);</strong></P><P>&nbsp;&nbsp;&nbsp;pComboFind-&gt;SetDropDownListStyle();<BR>&nbsp;&nbsp;&nbsp;pComboFind-&gt;SetEditHint(_T("Click to find string"));</P><P>&nbsp;&nbsp;&nbsp;pComboFind-&gt;AddString(_T("Line1"));<BR>&nbsp;&nbsp;&nbsp;pComboFind-&gt;AddString(_T("Line3"));<BR>&nbsp;&nbsp;&nbsp;pComboFind-&gt;AddString(_T("Line2"));<BR></P>]]>
   </description>
   <pubDate>Fri, 30 Sep 2005 11:47:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2975&amp;PID=8892&amp;title=cxtpcontrolcombobox-and-sorting#8892</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPC&#111;ntrolComboBox and Sorting : Thank you, Oleg...I was afraid...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2975&amp;PID=8882&amp;title=cxtpcontrolcombobox-and-sorting#8882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1522">precisionlaser</a><br /><strong>Subject:</strong> 2975<br /><strong>Posted:</strong> 30 September 2005 at 5:52am<br /><br />Thank you, Oleg...I was afraid that was the only way to do this.&nbsp;I ended up just adding the LBS_SORT style to the CXTPControlComobBoxclass in the CreateListBox function and rebuilding.&nbsp; I almostnever use a combo box without auto sorting, so it's easier just to doit this way and if I have to derive a new class without sorting, I'lljust do it then.&nbsp; Why not a SetSortStyle member function in thefuture?<br><br>Mark<br>]]>
   </description>
   <pubDate>Fri, 30 Sep 2005 05:52:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2975&amp;PID=8882&amp;title=cxtpcontrolcombobox-and-sorting#8882</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPC&#111;ntrolComboBox and Sorting : Here fix: class CControlSortedComboBoxList...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2975&amp;PID=8873&amp;title=cxtpcontrolcombobox-and-sorting#8873</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2975<br /><strong>Posted:</strong> 30 September 2005 at 1:51am<br /><br /><P>Here fix:</P><P>class CControlSortedComboBoxList : public CXTPControlComboBoxList<BR>{<BR>&nbsp;DECLARE_XTP_COMMANDBAR(CControlSortedComboBoxList);<BR>public:</P><P>&nbsp;virtual void CreateListBox()<BR>&nbsp;{<BR>&nbsp;&nbsp;CreateEx(WS_EX_STATICEDGE | WS_EX_TOOLWINDOW, _T("LISTBOX"), _T(""), <BR>&nbsp;&nbsp;&nbsp;<strong>LBS_SORT</strong> | WS_POPUP | WS_VSCROLL | WS_BORDER | WS_CLIPCHILDREN, CRect(0, 0, 0, 0), 0, 0);<BR>&nbsp;}</P><P>};</P><P><BR>class CControlSortedComboBox: public CXTPControlComboBox<BR>{<BR>&nbsp;DECLARE_XTP_CONTROL(CControlSortedComboBox)<BR>public:</P><P>&nbsp;CControlSortedComboBox()<BR>&nbsp;{<BR>&nbsp;&nbsp;if (m_pCommandBar)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;m_pCommandBar-&gt;InternalRelease();<BR>&nbsp;&nbsp;}</P><P>&nbsp;&nbsp;m_pCommandBar = new CControlSortedComboBoxList();<BR> &nbsp;&nbsp;((CControlSortedComboBoxList*)m_pCommandBar)-&gt ;CreateListBox();<BR>&nbsp;}<BR>};</P><P>...</P><P>IMPLEMENT_XTP_CONTROL(CControlSortedComboBox, CXTPControlComboBox)<BR>IMPLEMENT_XTP_COMMANDBAR(CControlSortedComboBoxList, CXTPControlComboBoxList)<BR></P><P>...</P><P>&nbsp;</P><P>Usage:</P><P>&nbsp;&nbsp;&nbsp;CControlSortedComboBox* pComboFind = new CControlSortedComboBox;</P><P>&nbsp;&nbsp;&nbsp;pComboFind-&gt;SetDropDownListStyle();<BR>&nbsp;&nbsp;&nbsp;pComboFind-&gt;SetEditHint(_T("Click to find string"));</P><P>&nbsp;&nbsp;&nbsp;pComboFind-&gt;AddString(_T("Line1"));<BR>&nbsp;&nbsp;&nbsp;pComboFind-&gt;AddString(_T("Line3"));<BR>&nbsp;&nbsp;&nbsp;pComboFind-&gt;AddString(_T("Line2"));</P><P>&nbsp;&nbsp;&nbsp;pComboFind-&gt;SetWidth(150);<BR>&nbsp;&nbsp;&nbsp;pComboFind-&gt;SetCaption(_T("Find"));<BR>&nbsp;&nbsp;&nbsp;pComboFind-&gt;SetStyle(xtpComboLabel);</P><P>&nbsp;&nbsp;&nbsp;lpCreateControl-&gt;pControl = pComboFind;<BR>&nbsp;&nbsp;&nbsp;return TRUE;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 30 Sep 2005 01:51:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2975&amp;PID=8873&amp;title=cxtpcontrolcombobox-and-sorting#8873</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPC&#111;ntrolComboBox and Sorting : Does anyone know how to set the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2975&amp;PID=8869&amp;title=cxtpcontrolcombobox-and-sorting#8869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1522">precisionlaser</a><br /><strong>Subject:</strong> 2975<br /><strong>Posted:</strong> 29 September 2005 at 7:52pm<br /><br />Does anyone know how to set the style for the CXTPControlComboBox sothat it automatically sorts the contents a la a real combo box?&nbsp; Ijust spent over $700 on this library and have wasted over an hourtrying to figure out what ought to be a simple fix. &nbsp;<img src="http://forum.codejock.com/smileys/smiley18.gif" border="0"><br><br>Mark<br>]]>
   </description>
   <pubDate>Thu, 29 Sep 2005 19:52:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2975&amp;PID=8869&amp;title=cxtpcontrolcombobox-and-sorting#8869</guid>
  </item> 
 </channel>
</rss>