diff options
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/CCtrlTreeView.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mir_core/src/CCtrlTreeView.cpp b/src/mir_core/src/CCtrlTreeView.cpp index 52c7df846b..1852517a9d 100644 --- a/src/mir_core/src/CCtrlTreeView.cpp +++ b/src/mir_core/src/CCtrlTreeView.cpp @@ -280,8 +280,9 @@ BOOL CCtrlTreeView::OnNotify(int, NMHDR *pnmh) case TVN_KEYDOWN: if (evt.nmtvkey->wVKey == VK_SPACE) { + evt.hItem = GetSelection(); if (m_bCheckBox) - InvertCheck(GetSelection()); + InvertCheck(evt.hItem); OnItemChanged(&evt); NotifyChange(); } @@ -301,6 +302,8 @@ BOOL CCtrlTreeView::OnNotify(int, NMHDR *pnmh) InvertCheck(hti.hItem); else SelectItem(hti.hItem); + + evt.hItem = hti.hItem; OnItemChanged(&evt); NotifyChange(); } |