summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-04-20 18:10:36 +0300
committeraunsane <aunsane@gmail.com>2018-04-20 18:10:36 +0300
commitf4a94401483903ef13e77b9865e00661dd034290 (patch)
tree5e6f1be4870e106116b5f749db82b4118cf13714
parent38197ead1ac8e551b09726b74557a6f980d15237 (diff)
core: checkbox control must notify change when it state changes programmatically
-rw-r--r--src/mir_core/src/CCtrlCheck.cpp5
1 files changed, 3 insertions, 2 deletions
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()