Commit a5820275 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

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: 's avatarZhiyi Zhang <zzhang@codeweavers.com>
parent 1ee38eaf
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment