TreeView notifications fix
Mike Hearn
mike at theoretic.com
Sun Mar 16 16:37:29 CST 2003
ChangeLog:
- Make the change notifications respect unicode vs ansi.
This fixes programs like putty, winamp, trillian etc which use a prefs
box with a treeview and makes them switch properly.
-------------- next part --------------
Index: dlls/comctl32/treeview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/treeview.c,v
retrieving revision 1.115
diff -u -r1.115 treeview.c
--- dlls/comctl32/treeview.c 6 Mar 2003 22:41:59 -0000 1.115
+++ dlls/comctl32/treeview.c 16 Mar 2003 22:22:17 -0000
@@ -4137,7 +4137,7 @@
return FALSE;
if (TREEVIEW_SendTreeviewNotify(infoPtr,
- TVN_SELCHANGINGW,
+ infoPtr->bNtfUnicode ? TVN_SELCHANGINGA : TVN_SELCHANGINGW,
cause,
TVIF_HANDLE | TVIF_STATE | TVIF_PARAM,
prevSelect,
@@ -4154,7 +4154,7 @@
TREEVIEW_EnsureVisible(infoPtr, infoPtr->selectedItem, FALSE);
TREEVIEW_SendTreeviewNotify(infoPtr,
- TVN_SELCHANGEDW,
+ infoPtr->bNtfUnicode ? TVN_SELCHANGEDA : TVN_SELCHANGEDW,
cause,
TVIF_HANDLE | TVIF_STATE | TVIF_PARAM,
prevSelect,
More information about the wine-patches
mailing list