summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-02 15:21:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-02 15:21:39 +0300
commit809afa397b0c0c2c6e220f67c01278b406290fa8 (patch)
treeccdb10dfd96d216c3fbcce036b51eb63c33bd4ad /src/mir_core
parent8e6d25afcc7ab8a9e473872055480a318e9919e6 (diff)
fix for the CSrmmToolbarOptions dialog
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/ui_utils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp
index 2c09dc9613..00917d9a8f 100644
--- a/src/mir_core/src/ui_utils.cpp
+++ b/src/mir_core/src/ui_utils.cpp
@@ -1739,6 +1739,7 @@ BOOL CCtrlTreeView::OnNotify(int, NMHDR *pnmh)
if (evt.nmtvkey->wVKey == VK_SPACE) {
if (m_bCheckBox)
InvertCheck(GetSelection());
+ OnChange(this);
NotifyChange();
}
@@ -1757,6 +1758,7 @@ BOOL CCtrlTreeView::OnNotify(int, NMHDR *pnmh)
InvertCheck(hti.hItem);
else
SelectItem(hti.hItem);
+ OnChange(this);
NotifyChange();
}
}
@@ -1775,6 +1777,8 @@ void CCtrlTreeView::InvertCheck(HTREEITEM hItem)
tvi.iImage = tvi.iSelectedImage = !tvi.iImage;
SetItem(&tvi);
+
+ SelectItem(hItem);
}
void CCtrlTreeView::TranslateItem(HTREEITEM hItem)