Jump to content
Sign in to follow this  
ryeguy

emptying out a listview

Recommended Posts

ryeguy

When I clear a listview, or delete it, every single listviewitem has to be deleted in it first. I have alot of items in the list and it takes a decent amount of time to do it. Is there any fast way, no matter how hackish it may be to instantly clear a listview?

Share this post


Link to post
Share on other sites
GaryFrost

Const $LVM_DELETEALLITEMS = 0x1009

GUICtrlSendMsg($h_listview, $LVM_DELETEALLITEMS, 0, 0)


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
ryeguy

Thanks, that's perfect.

While we're at it, since you made the include for the listview functions, do you know of a quick way to add lots of items at once?

Edited by ryeguy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×