diff options
author | George Hazan <ghazan@miranda.im> | 2023-01-10 17:58:07 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-01-10 17:58:07 +0300 |
commit | 1a8dfc0c29543cb24bc5bb1c66a6e8ad964b88f3 (patch) | |
tree | d0b6429fa6d313e33f65559be5e966f34b5b8ad9 /src | |
parent | 589c9b56e11e57adae8ef94eaeef8e32b8c460e2 (diff) |
fixes #3210 (StdMsg: не работает двойной клик во встроенном журнале, а тройной клик ведёт себя по-разному в приватах и чатах)
Diffstat (limited to 'src')
-rw-r--r-- | src/core/stdmsg/src/msglog.cpp | 13 |
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;
|