COMCTL32: fix for bug 3055

Krzysztof Foltman wdev at foltman.com
Sun Jun 12 13:49:55 CDT 2005


ChangeLog:
  * don't send TVN_SELCHANGING nor TVN_SELCHANGED if the same item is 
selected again

Reflects WinXP behaviour and prevents mIRC from freezing before 
displaying a channel list window.

Krzysztof
-------------- next part --------------
Index: treeview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/treeview.c,v
retrieving revision 1.171
diff -u -r1.171 treeview.c
--- treeview.c	18 Apr 2005 10:20:51 -0000	1.171
+++ treeview.c	12 Jun 2005 18:42:43 -0000
@@ -4221,6 +4221,11 @@
     case TVGN_CARET:
 	prevSelect = infoPtr->selectedItem;
 
+	if (prevSelect == newSelect) {
+	    TREEVIEW_EnsureVisible(infoPtr, infoPtr->selectedItem, FALSE);
+	    break;
+	}
+
 	if (TREEVIEW_SendTreeviewNotify(infoPtr,
 					TVN_SELCHANGINGW,
 					cause,


More information about the wine-patches mailing list