Re: Strange CListCtrl Sorting problem



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.
>>
>>
>
>


.



Relevant Pages

  • Re: Strange CListCtrl Sorting problem
    ... I had Sort flag set to ascending in the resource editor. ... > If the first time I populate the CListCtrl and sort it, ... > AliR. ...
    (microsoft.public.vc.mfc)
  • Re: Find Previous Instance on another computer?
    ... It has been suggested you use some sort of flag and you have ... running instances. ... > check a second computer for the same reason. ...
    (microsoft.public.vb.general.discussion)
  • Re: OO, I just dont get it.
    ... write a program that can forward sort lines of text from standard ... Now add in a command line option to "sort in reverse". ... tells the algorithm which which item goes first, ... Now add a command line flag to sort numerically. ...
    (comp.object)
  • Re: CPU increasing slowly up to 100%
    ... I think you should look for examples of one process waiting for another ... Sometimes people think if this sort of wait is placed in a thread, ... On the topic of deadlocks, and again at the risk of saying the obvious, ... flag and exit on its own. ...
    (comp.lang.java.programmer)
  • Re: How to set/reset word wrapping in a CEdit control?
    ... > I don't think that that you can turn that flag on and off. ... > AliR. ... >> Thank you for your response. ...
    (microsoft.public.vc.mfc)

Loading