From 89eb8fdba3d0b9524d7b3b1141550275b0893e29 Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Wed, 16 Oct 2002 19:57:31 +0000 Subject: [PATCH] We need to provide focus info always in ICON mode (spotted by Huw Davies). --- dlls/comctl32/listview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index a8a5c3f1cc8..163b62d411e 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -5450,12 +5450,13 @@ static LRESULT LISTVIEW_HitTest(LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht, BO 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;