• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

Problem in ListCtrl

HI,
  I created an simple application which has a list control. Set the List control properties
View to Icon(or small Icon) & sort as ascending. Add an item to list . but it is  not getting sorted. Change the View property to List. Now add an item. It properly sorts.
 Is it a bug in the MFC ListCtrl ??.. Is there any fix for this..

Thankx
Kiru
0
kiru
Asked:
kiru
1 Solution
 
captainkirkCommented:
When you insert the items, you are most likely inserting them at a certain location. You may want to call SortItems() directly after insertion, and be sure to specify your user-defined sort function.
0
 
kiruAuthor Commented:
I could figured it out my self but still I am acepting this as an answer to apriciate UR help..

Thankx
Kiru
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now