Solved

Problem in ListCtrl

Posted on 2001-06-22
2
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

705 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