Treeview notifications

Dimitrie O. Paun dpaun at rogers.com
Thu Oct 31 23:33:20 CST 2002


On October 31, 2002 11:32 pm, Dustin Navea wrote:
> in TREEVIEW_NotifyFormat shouldnt
> (lParam == NF_REQUERY) be (lParam == NF_QUERY) and change the corresponding
> line in TREEVIEW_Create since that is the original query? 

No, the code seems to be OK as it is now. Does this hack fix your problem?

Index: dlls/comctl32/treeview.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/treeview.c,v
retrieving revision 1.108
diff -u -r1.108 treeview.c
--- dlls/comctl32/treeview.c    31 Oct 2002 00:54:53 -0000      1.108
+++ dlls/comctl32/treeview.c    1 Nov 2002 05:31:50 -0000
@@ -5045,7 +5045,7 @@
                i);
            i = NFR_ANSI;
        }
-       infoPtr->bNtfUnicode = (i == NFR_UNICODE) ? 1 : 0;
+       infoPtr->bNtfUnicode = 0;
        return (LRESULT)i;
     }
     return (LRESULT)((infoPtr->bNtfUnicode) ? NFR_UNICODE : NFR_ANSI);


> I have already
> searched throughout the sources and the only place that
> TREEVIEW_NotifyFormat is called is in treeview.c in TREEVIEW_Create ...

Search again, it's called from the WindowProc as well (line 5339).
What do you use to search?!? :)

-- 
Dimi.




More information about the wine-devel mailing list