summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdmsg/src/msglog.cpp13
1 files changed, 1 insertions, 12 deletions
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;