ListView_DeleteAllItems (Compact 2013)

3/28/2014

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

Syntax

BOOL ListView_DeleteAllItems( 
  HWND hwnd 
);

Parameters

  • hwnd
    Handle to the list-view control.

Return Value

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

Header

commctrl.h

See Also

Reference

List-View Controls Macros
LVM_DELETEALLITEMS