How to Use a List View's ListView_SetItemCount?
How exactly are you supposed to use the ListView_SetItemCount function for a non-virtual list view in Win32?
I've looked at the documentation, but I still can't figure out:
Whether I'm supposed to call
ListView_SetItem
instead ofListView_InsertItem
to add an item, after callingListView_SetItemCount
.Why neither of the above approaches seems to accelerate adding a large n开发者_运维百科umber of items (around a few hundred) to a list view. :(
Any ideas?
It is the same idea as vector::capacity(). It is not going to make a noticeable improvement on a few hundred items.
精彩评论