diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/src/CCtrlButton.cpp | 5 | ||||
-rw-r--r-- | src/mir_core/src/mir_core.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/mir_core64.def | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/mir_core/src/CCtrlButton.cpp b/src/mir_core/src/CCtrlButton.cpp index 3b5166959b..0ed43e8466 100644 --- a/src/mir_core/src/CCtrlButton.cpp +++ b/src/mir_core/src/CCtrlButton.cpp @@ -36,6 +36,11 @@ BOOL CCtrlButton::OnCommand(HWND, WORD, WORD idCode) return FALSE; } +void CCtrlButton::Click() +{ + ::SendMessage(m_parentWnd->GetHwnd(), WM_COMMAND, MAKELONG(m_idCtrl, BN_CLICKED), 0); +} + bool CCtrlButton::IsPushed() const { return ::SendMessage(m_hwnd, BM_GETCHECK, 0, 0) == BST_CHECKED; diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 8a8e4df230..44602097df 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1051,3 +1051,4 @@ CallFunctionSync @1170 ?Resize@CDlgBase@@QAEXXZ @1239 NONAME
Utils_IsRtl @1240
HookTemporaryEvent @1241
+?Click@CCtrlButton@@QAEXXZ @1242 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index f188b5b51d..f90766de3b 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1051,3 +1051,4 @@ CallFunctionSync @1170 ?Resize@CDlgBase@@QEAAXXZ @1239 NONAME
Utils_IsRtl @1240
HookTemporaryEvent @1241
+?Click@CCtrlButton@@QEAAXXZ @1242 NONAME
|