comctl32: Do not send LVN_DELETEITEM on LVM_DELETEALLITEMS for virtual listviews.
This commit is contained in:
parent
e02d80b775
commit
d86a5a611d
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue