Zhiyi Zhang : shell32: Correctly apply SVSI_FOCUSED.
Alexandre Julliard
julliard at winehq.org
Fri Jul 15 14:44:42 CDT 2022
Module: wine
Branch: master
Commit: a5820275e81b5c86dfd6c5b75f389145ebd0e79c
URL: https://gitlab.winehq.org/wine/wine/-/commit/a5820275e81b5c86dfd6c5b75f389145ebd0e79c
Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date: Fri Jul 8 17:02:57 2022 +0800
shell32: Correctly apply SVSI_FOCUSED.
LVIS_FOCUSED has to be added to both stateMask and state to set focused state for list views.
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
dlls/shell32/shlview.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c
index e2b4ae4c9ca..1b4ba304dc1 100644
--- a/dlls/shell32/shlview.c
+++ b/dlls/shell32/shlview.c
@@ -2869,7 +2869,10 @@ static HRESULT WINAPI FolderView_SelectItem(IFolderView2 *iface, int item, DWORD
lvItem.state |= LVIS_SELECTED;
if (flags & SVSI_FOCUSED)
+ {
lvItem.stateMask |= LVIS_FOCUSED;
+ lvItem.state |= LVIS_FOCUSED;
+ }
SendMessageW(This->hWndList, LVM_SETITEMSTATE, item, (LPARAM)&lvItem);
More information about the wine-cvs
mailing list