Listview R6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




ChangeLog
  We need to provide focus info always in ICON mode
  (spotted by Huw Davies <huw@codeweavers.com>)

--- dlls/comctl32/listview.c.R5	Wed Oct 16 08:54:41 2002
+++ dlls/comctl32/listview.c	Wed Oct 16 15:02:28 2002
@@ -5448,12 +5448,13 @@
     lvItem.mask = LVIF_STATE | LVIF_TEXT;
     if (uView == LVS_REPORT) lvItem.mask |= LVIF_INDENT;
     lvItem.stateMask = LVIS_STATEIMAGEMASK;
-    if (uView == LVS_ICON && infoPtr->bFocus) lvItem.stateMask |= LVIS_FOCUSED;
+    if (uView == LVS_ICON) lvItem.stateMask |= LVIS_FOCUSED;
     lvItem.iItem = lpht->iItem;
     lvItem.iSubItem = 0;
     lvItem.pszText = szDispText;
     lvItem.cchTextMax = DISP_TEXT_SIZE;
     if (!LISTVIEW_GetItemW(infoPtr, &lvItem)) return -1;
+    if (!infoPtr->bFocus) lvItem.state &= ~LVIS_FOCUSED; 
     
     if (!LISTVIEW_GetItemMetrics(infoPtr, &lvItem, &rcBox, &rcState, &rcIcon, &rcLabel)) return -1;
     if (!LISTVIEW_GetItemOrigin(infoPtr, lpht->iItem, &Position)) return -1;



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux