From 1a8dfc0c29543cb24bc5bb1c66a6e8ad964b88f3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 10 Jan 2023 17:58:07 +0300 Subject: =?UTF-8?q?fixes=20#3210=20(StdMsg:=20=D0=BD=D0=B5=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82=20=D0=B4=D0=B2=D0=BE=D0=B9?= =?UTF-8?q?=D0=BD=D0=BE=D0=B9=20=D0=BA=D0=BB=D0=B8=D0=BA=20=D0=B2=D0=BE=20?= =?UTF-8?q?=D0=B2=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=BD=D0=BD=D0=BE=D0=BC=20?= =?UTF-8?q?=D0=B6=D1=83=D1=80=D0=BD=D0=B0=D0=BB=D0=B5,=20=D0=B0=20=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=B9=D0=BD=D0=BE=D0=B9=20=D0=BA=D0=BB=D0=B8=D0=BA?= =?UTF-8?q?=20=D0=B2=D0=B5=D0=B4=D1=91=D1=82=20=D1=81=D0=B5=D0=B1=D1=8F=20?= =?UTF-8?q?=D0=BF=D0=BE-=D1=80=D0=B0=D0=B7=D0=BD=D0=BE=D0=BC=D1=83=20?= =?UTF-8?q?=D0=B2=20=D0=BF=D1=80=D0=B8=D0=B2=D0=B0=D1=82=D0=B0=D1=85=20?= =?UTF-8?q?=D0=B8=20=D1=87=D0=B0=D1=82=D0=B0=D1=85)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/stdmsg/src/msglog.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/core') diff --git a/src/core/stdmsg/src/msglog.cpp b/src/core/stdmsg/src/msglog.cpp index 791cd1b71e..13d193be03 100644 --- a/src/core/stdmsg/src/msglog.cpp +++ b/src/core/stdmsg/src/msglog.cpp @@ -451,6 +451,7 @@ void CLogWindow::Attach() // get around a lame bug in the Windows template resource code where richedits are limited to 0x7FFF m_rtf.SendMsg(EM_LIMITTEXT, sizeof(wchar_t) * 0x7FFFFFFF, 0); m_rtf.SendMsg(EM_SETEVENTMASK, 0, ENM_MOUSEEVENTS | ENM_LINK | ENM_SCROLL); + m_rtf.SendMsg(EM_HIDESELECTION, TRUE, 0); m_rtf.SendMsg(EM_AUTOURLDETECT, TRUE, 0); } @@ -617,18 +618,6 @@ INT_PTR CLogWindow::WndProc(UINT msg, WPARAM wParam, LPARAM lParam) } break; - case WM_LBUTTONUP: - if (m_pDlg.isChat()) { - m_rtf.SendMsg(EM_EXGETSEL, 0, (LPARAM)&sel); - if (sel.cpMin != sel.cpMax) { - m_rtf.SendMsg(WM_COPY, 0, 0); - sel.cpMin = sel.cpMax; - m_rtf.SendMsg(EM_EXSETSEL, 0, (LPARAM)&sel); - } - SetFocus(m_pDlg.m_message.GetHwnd()); - } - break; - case WM_KEYDOWN: bool isShift = (GetKeyState(VK_SHIFT) & 0x8000) != 0; bool isCtrl = (GetKeyState(VK_CONTROL) & 0x8000) != 0; -- cgit v1.2.3