Share via


ListView_DeleteAllItems

This macro removes all items from a list-view control. You can use this macro or send the LVM_DELETEALLITEMS message explicitly.

BOOL ListView_DeleteAllItems( 
  HWND hwnd 
);

Parameters

  • hwnd
    Handle to the list-view control.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

When a list-view control receives the LVM_DELETEALLITEMS message, it sends the LVN_DELETEALLITEMS message to its parent window.

Related message: LVM_DELETEALLITEMS

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Commctrl.h.

See Also

LVM_DELETEALLITEMS | List-View Controls Macros

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.