diff options
author | George Hazan <ghazan@miranda.im> | 2017-10-25 18:57:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-10-25 18:57:45 +0300 |
commit | 55df6c3d447e7e3864b4e1cad671aaa0e74be16c (patch) | |
tree | 33c7b9e029b3aef9942bec1470f8928a90bc509b /src/mir_core | |
parent | de7997f69c7872b57b0548c7a6baa3818e83dd0a (diff) |
new method that emulates button click
Diffstat (limited to 'src/mir_core')
-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
|