Don't send TVN_SELCHANGING nor TVN_SELCHANGED if the same item is
selected again.
This commit is contained in:
parent
1fc0e675fc
commit
112df73530
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue