Solved

Problem in ListCtrl

Posted on 2001-06-22
2
244 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to know only "File created" with EventLog 3 29
canBalance challenge 34 65
fix34  challenge 9 97
Problem to event 3 50
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: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now