Listview N9

Dimitrie O. Paun dpaun at rogers.com
Thu Oct 10 15:57:09 CDT 2002


Brown paper bag type really...

ChangeLog
  Fix drawing bug introduced with the custom notification reorganization.

--- dlls/comctl32/listview.c.N8	Thu Oct 10 16:44:57 2002
+++ dlls/comctl32/listview.c	Thu Oct 10 16:54:51 2002
@@ -682,6 +682,7 @@
 	 !((infoPtr->dwStyle & LVS_TYPEMASK) == LVS_REPORT && 
 	   (infoPtr->dwLvExStyle & LVS_EX_FULLROWSELECT)) )
 	isSelected = FALSE;
+
     if (isSelected && infoPtr->bFocus)
     {
 	lpnmlvcd->clrTextBk = comctl32_color.clrHighlight;
@@ -3123,8 +3124,9 @@
     rcSelect = rcLabel;
     if ((infoPtr->dwStyle & LVS_TYPEMASK) == LVS_REPORT && (infoPtr->dwLvExStyle & LVS_EX_FULLROWSELECT))
 	rcSelect.right = rcBox.right;
-    
-    ExtTextOutW(hdc, rcSelect.left, rcSelect.top, ETO_OPAQUE, &rcSelect, 0, 0, 0);
+   
+    if (lvItem.state & LVIS_SELECTED) 
+        ExtTextOutW(hdc, rcSelect.left, rcSelect.top, ETO_OPAQUE, &rcSelect, 0, 0, 0);
     if(lprcFocus) *lprcFocus = rcSelect;
     
     DrawTextW(hdc, lvItem.pszText, -1, &rcLabel, LV_SL_DT_FLAGS | DT_CENTER);




More information about the wine-patches mailing list