开发者

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 of ListView_InsertItem to add an item, after calling ListView_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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜