Commit 8b392553 authored by Angelo Haller's avatar Angelo Haller Committed by Alexandre Julliard

comctl32/listview: Send one deselect all items notification for LVS_OWNERDATA listviews.

Send one deselect all items notification on selection change for LVS_OWNERDATA listviews instead of notifying about each individual item change. Signed-off-by: 's avatarAngelo Haller <angelo@szanni.org>
parent 38cf242e
......@@ -3406,7 +3406,14 @@ static BOOL LISTVIEW_DeselectAllSkipItems(LISTVIEW_INFO *infoPtr, RANGES toSkip)
lvItem.state = 0;
lvItem.stateMask = LVIS_SELECTED;
/* Only send one deselect all (-1) notification for LVS_OWNERDATA style */
if (infoPtr->dwStyle & LVS_OWNERDATA)
{
LISTVIEW_SetItemState(infoPtr, -1, &lvItem);
return TRUE;
}
/* need to clone the DPA because callbacks can change it */
if (!(clone = ranges_clone(infoPtr->selectionRanges))) return FALSE;
iterator_rangesitems(&i, ranges_diff(clone, toSkip));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment