RE: [?] Clearing LstView Controls
I would lean more towards using Mattike/roflmao456's method of using the LVM_DELETEALLITEMS message.
In my previous experience, doing a loop to remove each item is considerably slower and you can see the list getting cleared one by one.
Using the LVM_DELETEALLITEMS message clears the list altogether, and not only does that look nicer, but it probably uses less memory (considering only 1 line is called compared to the n lines used in a loop).
Just my two cents.
|