git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37897
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
// same thing for CDIS_FOCUS (except simpler as there is only one of them)
}
// same thing for CDIS_FOCUS (except simpler as there is only one of them)
- if ( ListView_GetNextItem(hwndList, -1, LVNI_FOCUSED) == item )
+ if ( ::GetFocus() == hwndList &&
+ ListView_GetNextItem(hwndList, -1, LVNI_FOCUSED) == item )
{
nmcd.uItemState |= CDIS_FOCUS;
}
{
nmcd.uItemState |= CDIS_FOCUS;
}