News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

How to clear a ListView

Started by Bokepatza, July 07, 2009, 12:21:38 AM

Previous topic - Next topic

Bokepatza

Hi all,

I have searched on the web for a method to clear a ListView and find that a LVM_CLEAR message could be sent to the ListView, but when I try this, I got LVM_CLEAR is an unknown identifier.

Anyone can help me erasing the ListView?

Thanks very much

EDIT
I find out the way to do that.

I was mistaken with the message.

I try LVM_DELETEALLITEMS and then it runs.

dedndave

if you use the masm32 search window, there are many listview goodies

vanjast

I vaguely remember setting the listitems=0.. I have to check this  :8)

evlncrn8

The LVM_DELETEALLITEMS message removes all items from a list view control. You can send this message explicitly or by using the ListView_DeleteAllItems macro.

LVM_DELETEALLITEMS 
wParam = 0;
lParam = 0;


Return Values

Returns TRUE if successful or FALSE otherwise.

definately does the job.. i use it a lot in my own code :)