From f4a94401483903ef13e77b9865e00661dd034290 Mon Sep 17 00:00:00 2001 From: aunsane Date: Fri, 20 Apr 2018 18:10:36 +0300 Subject: core: checkbox control must notify change when it state changes programmatically --- src/mir_core/src/CCtrlCheck.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mir_core') diff --git a/src/mir_core/src/CCtrlCheck.cpp b/src/mir_core/src/CCtrlCheck.cpp index 01f4773a6d..56cf6cec45 100644 --- a/src/mir_core/src/CCtrlCheck.cpp +++ b/src/mir_core/src/CCtrlCheck.cpp @@ -51,12 +51,13 @@ void CCtrlCheck::OnReset() int CCtrlCheck::GetState() { - return SendMessage(m_hwnd, BM_GETCHECK, 0, 0); + return ::SendMessage(m_hwnd, BM_GETCHECK, 0, 0); } void CCtrlCheck::SetState(int state) { - SendMessage(m_hwnd, BM_SETCHECK, state, 0); + ::SendMessage(m_hwnd, BM_SETCHECK, state, 0); + NotifyChange(); } bool CCtrlCheck::IsChecked() -- cgit v1.2.3