Solved

Problem in ListCtrl

Posted on 2001-06-22
2
248 Views
Last Modified: 2013-11-20
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
Comment
Question by:kiru
2 Comments
 
LVL 4

Accepted Solution

by:
captainkirk earned 100 total points
ID: 6219755
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
 

Author Comment

by:kiru
ID: 6291874
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ORA-01403: no data found 43 112
Looking for a specific application/software 2 119
MaxSpan challenge 9 123
Updating statistics with error notification email in SQL server 4 120
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question