CListView is evil?
-
why would a CListCtrl move an item without my permission? i don't have any sorting set. it's an Icon view, Auto-arrange list view and it hates me. i do this:
lvi.iItem = 0;
int idx = GetListCtrl().InsertItem (&lvi);
TRACE("idx = %d\n", idx);idx is, correctly, 0. but where does the item end up? position #3. -c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
/. #3848917 -
why would a CListCtrl move an item without my permission? i don't have any sorting set. it's an Icon view, Auto-arrange list view and it hates me. i do this:
lvi.iItem = 0;
int idx = GetListCtrl().InsertItem (&lvi);
TRACE("idx = %d\n", idx);idx is, correctly, 0. but where does the item end up? position #3. -c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
/. #3848917Chris Losinger wrote: i don't have any sorting set. it's an Icon view, Auto-arrange list view and it hates me. Well, i can´t think of something that you could have missed, and if the returned index is ok, i have definitely to agree with you : it hates you :) ~RaGE();
-
why would a CListCtrl move an item without my permission? i don't have any sorting set. it's an Icon view, Auto-arrange list view and it hates me. i do this:
lvi.iItem = 0;
int idx = GetListCtrl().InsertItem (&lvi);
TRACE("idx = %d\n", idx);idx is, correctly, 0. but where does the item end up? position #3. -c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
/. #3848917 -
Doesn't the icons in icon view always end up at the next free space? Internaly it have index 0, it just looks like it is 3..?? /M
- Don't sweat the petty things, and don't pet the sweaty things.
yeah, that's what it seems like. looks like i'll have to take out all the items, and insert them back, in the order i want. what a nice feature... -c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
/. #3848917 -
why would a CListCtrl move an item without my permission? i don't have any sorting set. it's an Icon view, Auto-arrange list view and it hates me. i do this:
lvi.iItem = 0;
int idx = GetListCtrl().InsertItem (&lvi);
TRACE("idx = %d\n", idx);idx is, correctly, 0. but where does the item end up? position #3. -c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
/. #3848917take off the Auto-Arrange feature?
-
take off the Auto-Arrange feature?
nope. no effect. :(
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
/. #3848917