?
Solved

Problem in ListCtrl

Posted on 2001-06-22
2
Medium Priority
?
251 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 300 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

Independent Software Vendors: 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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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…
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

770 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