Originally posted by: wang
i have a listctrl in formview ,the property of the ctrl
have lvs_owerdata,and it conflicts with setitemdata function
how to do
ReplyOriginally posted by: Dan
Great work! It solves my problem. Thanks for sharing this exellent job with us.
ReplyOriginally posted by: yang1126
I used your excellent code in my application, it helped me a lot, and VC6 said all right. But BoundsChecker of Numega found memory leaks in CompareAsc (text items) module when it returned the CompareNoCase result. I modified your code a little bit, but I don't think it will result in memory leaks.
ReplyOriginally posted by: David Msika
This sorts (no pun :) all of my problems at once...Thank you again for such a useful piece of code!!
Originally posted by: Kashif Bhatti
I'm facing a problem becoz of sorting as i have attached tool tips with each item. I'm working iver it, if i couldnt get any solution, i'll contact u.
Thanks.
Originally posted by: cuihp
this code is very good,it really do a importent wook for me.
Originally posted by: iztok
Just the calling function should be like this for string sorting....
void xxx::OnColumnclicklistxxx(NMHDR* pNMHDR, LRESULT* pResult)
I agree. Cool.
{
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
static bool bAscending = false;
CListCtrl* p_clist = &m_listxxx;
CSortClass csc( p_clist, pNMListView->iSubItem, false); // false = for string items
bAscending = !bAscending;
csc.Sort(bAscending);
*pResult = 0;
}
Originally posted by: alan
I keep getting
"unexpected class CSortClass( " error on the first constructor of the
header file. Anybody know what I'm doing wrong? I think I'm leaving out an include or something.
Reply
Originally posted by: DDOUBLE
Thanks you very much! Very Good!!!
ReplyOriginally posted by: Anushree
Incredible!! is the word for it.I had been looking at other solutions posted. One look at this code and I simply fell in love with it.Thanks once again.
Reply