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

selected again.
This commit is contained in:
Krzysztof Foltman 2005-06-13 11:38:55 +00:00 committed by Alexandre Julliard
parent 1fc0e675fc
commit 112df73530
1 changed files with 5 additions and 0 deletions

View File

@ -4221,6 +4221,11 @@ TREEVIEW_DoSelectItem(TREEVIEW_INFO *infoPtr, INT action, HTREEITEM newSelect,
case TVGN_CARET: case TVGN_CARET:
prevSelect = infoPtr->selectedItem; prevSelect = infoPtr->selectedItem;
if (prevSelect == newSelect) {
TREEVIEW_EnsureVisible(infoPtr, infoPtr->selectedItem, FALSE);
break;
}
if (TREEVIEW_SendTreeviewNotify(infoPtr, if (TREEVIEW_SendTreeviewNotify(infoPtr,
TVN_SELCHANGINGW, TVN_SELCHANGINGW,
cause, cause,