diff options
author | George Hazan <ghazan@miranda.im> | 2017-10-25 19:01:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-10-25 19:01:09 +0300 |
commit | 083bf4917323edb4b73489d8261393a99f3edea1 (patch) | |
tree | 886f6f47a1391608a11ff0c30fabca710a4f1ade /src/core | |
parent | 55df6c3d447e7e3864b4e1cad671aaa0e74be16c (diff) |
click emulator used instead of direct handler call
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdmsg/src/chat_window.cpp | 4 | ||||
-rw-r--r-- | src/core/stdmsg/src/tabs.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/stdmsg/src/chat_window.cpp b/src/core/stdmsg/src/chat_window.cpp index 3c130511ed..46b9bbb97f 100644 --- a/src/core/stdmsg/src/chat_window.cpp +++ b/src/core/stdmsg/src/chat_window.cpp @@ -646,7 +646,7 @@ LRESULT CChatRoomDlg::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam) if (wParam == '\n' || wParam == '\r') { if ((isCtrl != 0) ^ (0 != db_get_b(0, CHAT_MODULE, "SendOnEnter", 1))) { - m_btnOk.OnClick(&m_btnOk); + m_btnOk.Click(); return 0; } if (db_get_b(0, CHAT_MODULE, "SendOnDblEnter", 0)) { @@ -655,7 +655,7 @@ LRESULT CChatRoomDlg::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam) else { m_message.SendMsg(WM_KEYDOWN, VK_BACK, 0); m_message.SendMsg(WM_KEYUP, VK_BACK, 0); - m_btnOk.OnClick(&m_btnOk); + m_btnOk.Click(); return 0; } } diff --git a/src/core/stdmsg/src/tabs.cpp b/src/core/stdmsg/src/tabs.cpp index 013816a9c7..56b226614e 100644 --- a/src/core/stdmsg/src/tabs.cpp +++ b/src/core/stdmsg/src/tabs.cpp @@ -561,7 +561,7 @@ INT_PTR CTabbedWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) if (LOWORD(wParam) == IDOK) { CMsgDialog *pDlg = (g_Settings.bTabsEnable) ? (CMsgDialog*)m_tab.GetActivePage() : m_pEmbed; if (pDlg != nullptr) { - pDlg->m_btnOk.OnClick(&pDlg->m_btnOk); + pDlg->m_btnOk.Click(); return TRUE; } } |