CListCtrl InsertItem
-
In Report style fot a list ctrl . When I insert items , every new item enters at the top , so if I enter 1,2,3,4 in list control one by one it will look like 4 3 2 1 although i choose the Sorting to None. But I want that every new item should be entered at bottom and i also dont want sorting , sequence in my case is very important. So how to insert every new item at the last of list ctrl. to have such kind of result 1 2 3 4 where 1 entered first , 2 secondly and so on. Unmanaged in a .NET world
-
In Report style fot a list ctrl . When I insert items , every new item enters at the top , so if I enter 1,2,3,4 in list control one by one it will look like 4 3 2 1 although i choose the Sorting to None. But I want that every new item should be entered at bottom and i also dont want sorting , sequence in my case is very important. So how to insert every new item at the last of list ctrl. to have such kind of result 1 2 3 4 where 1 entered first , 2 secondly and so on. Unmanaged in a .NET world
int InsertItem( int nItem, LPCTSTR lpszItem ); nItem is the index in the ListCtrl where your item gets if you insert, it sound like you have hardcoded it to 0. to enter 1, 2, 3, 4 do InsertItem(0, "1"); InsertItem(1, "2"); InsertItem(2, "3"); InsertItem(3, "4"); Arjan
-
In Report style fot a list ctrl . When I insert items , every new item enters at the top , so if I enter 1,2,3,4 in list control one by one it will look like 4 3 2 1 although i choose the Sorting to None. But I want that every new item should be entered at bottom and i also dont want sorting , sequence in my case is very important. So how to insert every new item at the last of list ctrl. to have such kind of result 1 2 3 4 where 1 entered first , 2 secondly and so on. Unmanaged in a .NET world
-
if I'm not mistaken AddString or something should add items at the bottom off the list. InsertItem will insert the item at a given position. "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
V. wrote: if I'm not mistaken AddString... ... is a
CListBox()
method.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen