summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-08 10:56:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-08 10:56:03 +0300
commit8feae113a772d39976e1a5f689c4a0614c526c2d (patch)
tree8f347f76f624d5663286b7305f1c1bc67f543cc8
parentee1c66a755596133985d743038cf4bb484e3dabc (diff)
Scriver: rbutton click fixed
-rw-r--r--plugins/Scriver/src/msgdialog.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp
index 20349589f0..037f1eef6d 100644
--- a/plugins/Scriver/src/msgdialog.cpp
+++ b/plugins/Scriver/src/msgdialog.cpp
@@ -1705,6 +1705,10 @@ INT_PTR CSrmmWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
}
switch (((MSGFILTER *)lParam)->msg) {
+ case WM_RBUTTONUP:
+ SetWindowLongPtr(m_hwnd, DWLP_MSGRESULT, TRUE);
+ return TRUE;
+
case WM_CHAR:
if (!(GetKeyState(VK_CONTROL) & 0x8000)) {
SetFocus(m_message.GetHwnd());
@@ -1716,6 +1720,13 @@ INT_PTR CSrmmWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
break;
}
break;
+
+ case IDC_MESSAGE:
+ if (pNmhdr->code == EN_MSGFILTER && ((MSGFILTER *)lParam)->msg == WM_RBUTTONUP) {
+ SetWindowLongPtr(m_hwnd, DWLP_MSGRESULT, TRUE);
+ return TRUE;
+ }
+ break;
}
break;