开发者

How to Use a List View's ListView_SetItemCount?

开发者 https://www.devze.com 2023-02-22 14:07 出处:网络
How exactly are you supposed to use the ListView_SetItemCount function for a non-virtual list view in Win32?

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

精彩评论

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