COMCTL32: WM_GETTEXTLENGTH should return zero for owner drawn status bars

Mike McCormack mike at codeweavers.com
Thu Jan 6 01:33:53 CST 2005


ChangeLog:
Ulrich Czekalla <ulrich at codeweavers.com>
* WM_GETTEXTLENGTH should return zero for owner drawn status bars
-------------- next part --------------
Index: dlls/comctl32/status.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/status.c,v
retrieving revision 1.67
diff -u -r1.67 status.c
--- dlls/comctl32/status.c	27 Oct 2004 21:16:17 -0000	1.67
+++ dlls/comctl32/status.c	6 Jan 2005 07:30:46 -0000
@@ -455,7 +455,7 @@
     else
 	part = &infoPtr->parts[nPart];
 
-    if (part->text)
+    if ((~part->style & SBT_OWNERDRAW) && part->text)
 	result = strlenW(part->text);
     else
 	result = 0;


More information about the wine-patches mailing list