nItem = priya_list.InsertItem(0, ccetre);
You're inserting at the beginning of the control. That's that the 0 is doing. You need to insert at the end.
nItem = priya_list.InsertItem(priya_list.GetItemCount(), ccetre);
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 33
Thread: ListCtrl in MFCThreaded View
|
Click Here to Expand Forum to Full Width |