comctl32: Do not send LVN_DELETEITEM on LVM_DELETEALLITEMS for virtual listviews.

This commit is contained in:
Igor Tarasov 2009-02-19 07:41:25 +04:00 committed by Alexandre Julliard
parent e02d80b775
commit d86a5a611d
1 changed files with 3 additions and 2 deletions

View File

@ -4532,10 +4532,11 @@ static BOOL LISTVIEW_DeleteAllItems(LISTVIEW_INFO *infoPtr, BOOL destroy)
for (i = infoPtr->nItemCount - 1; i >= 0; i--)
{
/* send LVN_DELETEITEM notification, if not suppressed */
if (!bSuppress) notify_deleteitem(infoPtr, i);
if (!(infoPtr->dwStyle & LVS_OWNERDATA))
{
/* send LVN_DELETEITEM notification, if not suppressed
and if it is not a virtual listview */
if (!bSuppress) notify_deleteitem(infoPtr, i);
hdpaSubItems = DPA_GetPtr(infoPtr->hdpaItems, i);
for (j = 0; j < DPA_GetPtrCount(hdpaSubItems); j++)
{