Commit 112df735 authored by Krzysztof Foltman's avatar Krzysztof Foltman Committed by Alexandre Julliard

Don't send TVN_SELCHANGING nor TVN_SELCHANGED if the same item is

selected again.
parent 1fc0e675
......@@ -4221,6 +4221,11 @@ TREEVIEW_DoSelectItem(TREEVIEW_INFO *infoPtr, INT action, HTREEITEM newSelect,
case TVGN_CARET:
prevSelect = infoPtr->selectedItem;
if (prevSelect == newSelect) {
TREEVIEW_EnsureVisible(infoPtr, infoPtr->selectedItem, FALSE);
break;
}
if (TREEVIEW_SendTreeviewNotify(infoPtr,
TVN_SELCHANGINGW,
cause,
......
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