diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index d249cff9cfa..3c294f2a715 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -9566,7 +9566,6 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType, if (wStyleType != GWL_STYLE) return 0; /* FIXME: if LVS_NOSORTHEADER changed, update header */ - /* or LVS_SINGLESEL */ /* or LVS_SORT{AS,DES}CENDING */ infoPtr->dwStyle = lpss->styleNew; diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c index 57336686732..6b68c56d987 100644 --- a/dlls/comctl32/tests/listview.c +++ b/dlls/comctl32/tests/listview.c @@ -1351,6 +1351,7 @@ static void test_multiselect(void) static const int items=5; BYTE kstate[256]; select_task task; + LONG_PTR style; static struct t_select_task task_list[] = { { "using VK_DOWN", 0, VK_DOWN, -1, -1 }, @@ -1407,6 +1408,60 @@ static void test_multiselect(void) SetKeyboardState(kstate); } DestroyWindow(hwnd); + + /* make multiple selection, then switch to LVS_SINGLESEL */ + hwnd = create_listview_control(0); + for (i=0;i