Re: Strange CListCtrl Sorting problem
- From: "Vipin" <Vipin@xxxxxxxxxx>
- Date: Sat, 14 Jan 2006 03:45:44 +0530
Thought so. Curiosity, was there a change between vc++6 and vs .net 2003 for
List Control?.
In vs .net 2003,sort is by default "none" for list control.
--
Vipin Aravind
Microsoft - MVP
"AliR" <AliR@xxxxxxxxxxxxx> wrote in message
news:dgVxf.577$H71.475@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> My bad, I had Sort flag set to ascending in the resource editor. ;)
>
> AliR.
>
> "AliR" <AliR@xxxxxxxxxxxxx> wrote in message
> news:wcVxf.576$H71.197@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Hi All,
>>
>> Here is the situation. I have a list control that get's populated after
> the
>> user selects an item from a combo box. Each time the user selects a new
>> item from the combobox I remove all the items and add new ones. Now
>> depending on the combo box item selected, the list needs to be sorted or
>> not.
>>
>> So I have a m_Sort flag that get's set everytime the ComboBox selection
>> is
>> changed, and after I populate the CListCtrl I call SortItems if the
>> m_Sort
>> flag is set to true.
>>
>> If the first time I populate the CListCtrl and sort it, then everytime I
>> clear it an add items they are all sorted again without me calling
>> SortItems, and without my Sort callback function getting called.
>>
>> I varified that items are being inserted in an unsorted order, but when
> the
>> display comes up they are sorted.
>>
>> AliR.
>>
>>
>
>
.
- Follow-Ups:
- Re: Strange CListCtrl Sorting problem
- From: AliR
- Re: Strange CListCtrl Sorting problem
- From: AliR
- Re: Strange CListCtrl Sorting problem
- References:
- Strange CListCtrl Sorting problem
- From: AliR
- Re: Strange CListCtrl Sorting problem
- From: AliR
- Strange CListCtrl Sorting problem
- Prev by Date: Re: Strange CListCtrl Sorting problem
- Next by Date: Re: MFC AND Visual C++ 2005 Express Edition ?
- Previous by thread: Re: Strange CListCtrl Sorting problem
- Next by thread: Re: Strange CListCtrl Sorting problem
- Index(es):
Relevant Pages
|
Loading