Aric Stewart : comctl32: Listview notify fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Apr 17 05:55:03 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 097aec39ca86fb84cda58c1db0b84c2c035b1ef4
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=097aec39ca86fb84cda58c1db0b84c2c035b1ef4
Author: Aric Stewart <aric at codeweavers.com>
Date: Thu Apr 13 14:18:55 2006 -0500
comctl32: Listview notify fix.
Turn off updating for that the unselect and select and then turns it
on for the focus call, this results in 1 edit notify being sent at the
end of the operation.
---
dlls/comctl32/listview.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 23c5802..808dc93 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -3046,6 +3046,7 @@ static void LISTVIEW_SetGroupSelection(L
RANGES selection;
LVITEMW item;
ITERATOR i;
+ BOOL bOldChange;
if (!(selection = ranges_create(100))) return;
@@ -3087,12 +3088,19 @@ static void LISTVIEW_SetGroupSelection(L
iterator_destroy(&i);
}
+ bOldChange = infoPtr->bDoChangeNotify;
+ infoPtr->bDoChangeNotify = FALSE;
+
LISTVIEW_DeselectAllSkipItems(infoPtr, selection);
+
+
iterator_rangesitems(&i, selection);
while(iterator_next(&i))
LISTVIEW_SetItemState(infoPtr, i.nItem, &item);
/* this will also destroy the selection */
iterator_destroy(&i);
+
+ infoPtr->bDoChangeNotify = bOldChange;
LISTVIEW_SetItemFocus(infoPtr, nItem);
}
More information about the wine-cvs
mailing list