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 /plugins/TabSRMM | |
parent | 55df6c3d447e7e3864b4e1cad671aaa0e74be16c (diff) |
click emulator used instead of direct handler call
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/generic_msghandlers.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp index 626d5f45a6..6f6ca314bb 100644 --- a/plugins/TabSRMM/src/generic_msghandlers.cpp +++ b/plugins/TabSRMM/src/generic_msghandlers.cpp @@ -126,7 +126,7 @@ bool CTabBaseDlg::DM_GenericHotkeysCheck(MSG *message) return true; case TABSRMM_HK_HISTORY: - m_btnHistory.OnClick(&m_btnHistory); + m_btnHistory.Click(); return true; case TABSRMM_HK_CONTAINEROPTIONS: diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 147555a9c3..f5405007f5 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -1898,7 +1898,7 @@ LRESULT CSrmmWindow::WndProc_Log(UINT msg, WPARAM wParam, LPARAM lParam) if (wParam == 0x03 && isCtrl) // Ctrl+C
return WMCopyHandler(msg, wParam, lParam);
if (wParam == 0x11 && isCtrl) // Ctrl+Q
- m_btnQuote.OnClick(&m_btnQuote);
+ m_btnQuote.Click();
break;
case WM_SYSKEYUP:
@@ -1997,15 +1997,15 @@ LRESULT CSrmmWindow::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam) switch (wParam) {
case 0x02: // bold
if (m_SendFormat)
- m_btnBold.OnClick(&m_btnBold);
+ m_btnBold.Click();
return 0;
case 0x09:
if (m_SendFormat)
- m_btnItalic.OnClick(&m_btnItalic);
+ m_btnItalic.Click();
return 0;
case 21:
if (m_SendFormat)
- m_btnUnderline.OnClick(&m_btnUnderline);
+ m_btnUnderline.Click();
return 0;
case 0x0b:
m_message.SetText(L"");
|