summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-29 19:17:05 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-29 19:17:13 +0300
commit4f821578e14747bca6fb8d0e99ead0d12dd818e9 (patch)
tree6d12fba9f35abc51f204815d460aee9d963b070c /src
parentc7ecb1ba6a82ba869ce95927d549fe4f266ffff5 (diff)
fixes #780 (Scriver: All message log text is selected on keyboard focus)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/srmm_base.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp
index 9543f2e1e5..3c737fd772 100644
--- a/src/mir_app/src/srmm_base.cpp
+++ b/src/mir_app/src/srmm_base.cpp
@@ -298,7 +298,10 @@ LRESULT CSrmmBaseDialog::WndProc_Log(UINT msg, WPARAM wParam, LPARAM lParam)
break;
}
- return mir_callNextSubclass(m_log.GetHwnd(), stubLogProc, msg, wParam, lParam);
+ LRESULT res = mir_callNextSubclass(m_log.GetHwnd(), stubLogProc, msg, wParam, lParam);
+ if (msg == WM_GETDLGCODE)
+ return res & ~DLGC_HASSETSEL;
+ return res;
}
/////////////////////////////////////////////////////////////////////////////////////////
@@ -314,7 +317,10 @@ EXTERN_C MIR_APP_DLL(LRESULT) CALLBACK stubMessageProc(HWND hwnd, UINT msg, WPAR
LRESULT CSrmmBaseDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam)
{
- return mir_callNextSubclass(m_message.GetHwnd(), stubMessageProc, msg, wParam, lParam);
+ LRESULT res = mir_callNextSubclass(m_message.GetHwnd(), stubMessageProc, msg, wParam, lParam);
+ if (msg == WM_GETDLGCODE)
+ return res & ~DLGC_HASSETSEL;
+ return res;
}
/////////////////////////////////////////////////////////////////////////////////////////