<?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 : CXTPListBase::SortList Method</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CXTPListBase::SortList Method]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:37:31 +0000</pubDate>
  <lastBuildDate>Fri, 08 Jul 2016 04:48:34 +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=23047</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[CXTPListBase::SortList Method : Sorry !!!!I have found the problem....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74873&amp;title=cxtplistbasesortlist-method#74873</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8916">angelsoriasanagustin</a><br /><strong>Subject:</strong> 23047<br /><strong>Posted:</strong> 08 July 2016 at 4:48am<br /><br />Sorry !!!!&nbsp;<img src="http://forum.codejock.com/smileys/smiley9.gif" border="0" alt="Embarrassed" title="Embarrassed" /><div><br></div><div>I have found the problem. I was sorting twice&nbsp;<img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" alt="C&#111;nfused" title="C&#111;nfused" /></div><div><br></div><div>The function works fine.</div><div><br></div><div>Thaks to all !!!!</div>]]>
   </description>
   <pubDate>Fri, 08 Jul 2016 04:48:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74873&amp;title=cxtplistbasesortlist-method#74873</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPListBase::SortList Method : Thanks for the help...I was using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74871&amp;title=cxtplistbasesortlist-method#74871</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8916">angelsoriasanagustin</a><br /><strong>Subject:</strong> 23047<br /><strong>Posted:</strong> 07 July 2016 at 1:13pm<br /><br />Thanks for the help...<div><br></div><div>I was using other example:&nbsp;http://www.codeproject.com/Articles/27774/CListCtrl-and-sorting-rows</div><div><br></div><div>The example works with a standar control, but if I use a derived class of&nbsp;CXTPListCtrl<span style="line-height: 1.4;">&nbsp;no matter what I do, always is sorted by default.</span></div><div><span style="line-height: 1.4;"><br></span></div><div>My callbackfunction returns rand ()%2, and all is sorted !!!</div><div><br></div><div>Can be a bug ????</div>]]>
   </description>
   <pubDate>Thu, 07 Jul 2016 13:13:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74871&amp;title=cxtplistbasesortlist-method#74871</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPListBase::SortList Method : Hi,Codejock used the sort mechanism...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74870&amp;title=cxtplistbasesortlist-method#74870</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8817">cluster</a><br /><strong>Subject:</strong> 23047<br /><strong>Posted:</strong> 07 July 2016 at 5:14am<br /><br />Hi,<br>Codejock used the sort mechanism from CListCtrl:<br>...<br>&nbsp;&nbsp;&nbsp; m_pListCtrl-&gt;SortItems(<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ListViewCompareProc, (nCol + 1)*(bAscending? 1: -1));<br>...<br>so you need a own Callback function like:<br>static int CALLBACK MyCompareProc(LPARAM lparam1, LPARAM lparam2, LPARAM lparamSort);<br><br>here is an example:<br>http://www.codeproject.com/Articles/1901/Example-of-CListCtrl-SortItems-in-MSDN<br><br>I hope this helps!<br>]]>
   </description>
   <pubDate>Thu, 07 Jul 2016 05:14:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74870&amp;title=cxtplistbasesortlist-method#74870</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPListBase::SortList Method : Please... any idea ?Thanks ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74869&amp;title=cxtplistbasesortlist-method#74869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8916">angelsoriasanagustin</a><br /><strong>Subject:</strong> 23047<br /><strong>Posted:</strong> 07 July 2016 at 3:02am<br /><br />Please... any idea ?<div>Thanks</div>]]>
   </description>
   <pubDate>Thu, 07 Jul 2016 03:02:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74869&amp;title=cxtplistbasesortlist-method#74869</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPListBase::SortList Method : Ok, but the help says same:Override...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74830&amp;title=cxtplistbasesortlist-method#74830</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8916">angelsoriasanagustin</a><br /><strong>Subject:</strong> 23047<br /><strong>Posted:</strong> 21 June 2016 at 6:16am<br /><br />Ok, but the help says same:<div><br></div><div>Override this member function in your derived class to perform custom sort routines.</div><div><br></div><div>How ?????</div><div><br></div><div>Thanks.</div>]]>
   </description>
   <pubDate>Tue, 21 Jun 2016 06:16:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74830&amp;title=cxtplistbasesortlist-method#74830</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPListBase::SortList Method : Hello,You can explore methodCX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74823&amp;title=cxtplistbasesortlist-method#74823</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23047<br /><strong>Posted:</strong> 19 June 2016 at 4:00am<br /><br />Hello,<br><br>You can explore method&nbsp;CXTPShellListBase::SortList<br><br><span style="line-height: 16.8px;">CXTPShellListBase is derived from&nbsp;</span>CXTPListBase.<br><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Sun, 19 Jun 2016 04:00:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74823&amp;title=cxtplistbasesortlist-method#74823</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPListBase::SortList Method : Thanks, butI can&amp;#039;t sort before...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74813&amp;title=cxtplistbasesortlist-method#74813</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8916">angelsoriasanagustin</a><br /><strong>Subject:</strong> 23047<br /><strong>Posted:</strong> 15 June 2016 at 4:41am<br /><br />Thanks, but&nbsp;<span style="line-height: 1.4;">I can't sort before because I have multiple columns, and the user can select what to sort.</span><div><div><br></div><div>I'm testing&nbsp;CXTPListCtrl::SortList()... It's called when the user clicks in a column... Ok.</div><div>I'm triying to sort columns using MoveRow() in the function, but doen't work. The rows are sorted by default no matter what I write on the function.</div><div><br></div><div>Please do a better documentation...&nbsp;</div><div>Form Help:</div><div><i><span ="Apple-tab-span" style="white-space:pre">	</span>Override this member function in your derived class to perform custom sort routines.</i></div><div><i><br></i></div><div>How ????</div></div>]]>
   </description>
   <pubDate>Wed, 15 Jun 2016 04:41:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74813&amp;title=cxtplistbasesortlist-method#74813</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPListBase::SortList Method : Hi!Can you sort the items before...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74812&amp;title=cxtplistbasesortlist-method#74812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=365">Alex H.</a><br /><strong>Subject:</strong> 23047<br /><strong>Posted:</strong> 15 June 2016 at 2:15am<br /><br />Hi!<br><br>Can you sort the items before adding them to the list?<br><br>:-)<br>]]>
   </description>
   <pubDate>Wed, 15 Jun 2016 02:15:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74812&amp;title=cxtplistbasesortlist-method#74812</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPListBase::SortList Method : Hi.I have aCXTPListCtrl with dates...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74810&amp;title=cxtplistbasesortlist-method#74810</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8916">angelsoriasanagustin</a><br /><strong>Subject:</strong> 23047<br /><strong>Posted:</strong> 14 June 2016 at 12:49pm<br /><br />Hi.<div><br></div><div>I have a&nbsp;CXTPListCtrl with dates in a column. To sort this data correctly I need to do a custom sort routine. In the documentation I have found CXTPListBase::SortList Method, but there is no explanation about it.</div><div><br></div><div>Can anyone give me an example about using it ?</div><div><br></div><div>Thanks.</div>]]>
   </description>
   <pubDate>Tue, 14 Jun 2016 12:49:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23047&amp;PID=74810&amp;title=cxtplistbasesortlist-method#74810</guid>
  </item> 
 </channel>
</rss>