From 8feae113a772d39976e1a5f689c4a0614c526c2d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 8 Mar 2017 10:56:03 +0300 Subject: Scriver: rbutton click fixed --- plugins/Scriver/src/msgdialog.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'plugins/Scriver') 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; -- cgit v1.2.3