summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-26 23:08:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-26 23:08:45 +0300
commitc3284222ede09cd7ec3ea2c1ad339d2f45896abe (patch)
tree6eec530617538f03b2a7a54e3d4a57c12efbe9c6
parent57bf1c3a69d5b52f0f61172ddff50f24dbe8351e (diff)
fixes #2284 (No right mouse clicke menu on messege editor)
-rw-r--r--src/core/stdmsg/src/msgdialog.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp
index 1c89c56be7..4f04cdca16 100644
--- a/src/core/stdmsg/src/msgdialog.cpp
+++ b/src/core/stdmsg/src/msgdialog.cpp
@@ -130,7 +130,7 @@ bool CMsgDialog::OnInitDialog()
m_iSplitterY = g_plugin.getDword(g_dat.bSavePerContact ? m_hContact : 0, "splitterPos", m_minEditInit.bottom - m_minEditInit.top);
UpdateSizeBar();
- m_message.SendMsg(EM_SETEVENTMASK, 0, ENM_CHANGE);
+ m_message.SendMsg(EM_SETEVENTMASK, 0, ENM_MOUSEEVENTS | ENM_CHANGE);
if (isChat()) {
m_avatar.Hide();
@@ -876,8 +876,15 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
if ((si.nPos + (int)si.nPage + 5) >= si.nMax)
StopFlash();
}
- break;
}
+ break;
+
+ case IDC_SRMM_MESSAGE:
+ if (((LPNMHDR)lParam)->code == EN_MSGFILTER && ((MSGFILTER *)lParam)->msg == WM_RBUTTONUP) {
+ SetWindowLongPtr(m_hwnd, DWLP_MSGRESULT, TRUE);
+ return TRUE;
+ }
+ break;
}
break;