Listview AB1

Dimitrie O. Paun dpaun at rogers.com
Tue Nov 5 20:49:21 CST 2002


Fixes this one:
  http://bugs.winehq.org/show_bug.cgi?id=1107

ChangeLog
  Do not draw the text of the item being edited.

--- dlls/comctl32/listview.c.AB0	2002-11-05 21:11:04.000000000 -0500
+++ dlls/comctl32/listview.c	2002-11-05 21:43:15.000000000 -0500
@@ -3515,7 +3515,7 @@
     }
 
     /* Don't bother painting item being edited */
-    if (infoPtr->hwndEdit && lprcFocus && nSubItem == 0) goto postpaint;
+    if (infoPtr->hwndEdit && nItem == infoPtr->nEditLabelItem && nSubItem == 0) goto postpaint;
 
     /* Set the text attributes */
     if (nmlvcd.clrTextBk != CLR_NONE)
@@ -4293,6 +4293,7 @@
 
     LISTVIEW_SetSelection(infoPtr, nItem);
     LISTVIEW_SetItemFocus(infoPtr, nItem);
+    LISTVIEW_InvalidateItem(infoPtr, nItem);
 
     rect.left = LVIR_LABEL;
     if (!LISTVIEW_GetItemRect(infoPtr, nItem, &rect)) return 0;


-- 
Dimi.




More information about the wine-patches mailing list