Commit 36297f2c authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

comctl32: Do not send WM_NOTIFY if selecting an already-selected item.

parent a0ebe244
...@@ -1773,7 +1773,7 @@ static void test_TVS_SINGLEEXPAND(void) ...@@ -1773,7 +1773,7 @@ static void test_TVS_SINGLEEXPAND(void)
{ &golf, parent_singleexpand_seq5, TRUE }, { &golf, parent_singleexpand_seq5, TRUE },
{ &hotel, parent_singleexpand_seq6, FALSE }, { &hotel, parent_singleexpand_seq6, FALSE },
{ &india, parent_singleexpand_seq7, FALSE }, { &india, parent_singleexpand_seq7, FALSE },
{ &india, empty_seq, TRUE } { &india, empty_seq, FALSE }
}; };
hTree = create_treeview_control(0); hTree = create_treeview_control(0);
......
...@@ -4475,6 +4475,9 @@ TREEVIEW_SelectItem(TREEVIEW_INFO *infoPtr, INT wParam, HTREEITEM item) ...@@ -4475,6 +4475,9 @@ TREEVIEW_SelectItem(TREEVIEW_INFO *infoPtr, INT wParam, HTREEITEM item)
if (item && !TREEVIEW_ValidItem(infoPtr, item)) if (item && !TREEVIEW_ValidItem(infoPtr, item))
return FALSE; return FALSE;
if (item == infoPtr->selectedItem)
return TRUE;
TRACE("%p (%s) %d\n", item, TREEVIEW_ItemName(item), wParam); TRACE("%p (%s) %d\n", item, TREEVIEW_ItemName(item), wParam);
if (!TREEVIEW_DoSelectItem(infoPtr, wParam, item, TVC_UNKNOWN)) if (!TREEVIEW_DoSelectItem(infoPtr, wParam, item, TVC_UNKNOWN))
......
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