summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-08 19:00:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-08 19:00:24 +0300
commitd70487f05a8306aae3adf6325724c710f89b2883 (patch)
tree0509ac8fb845c1cccd61816e3ab274b3b32a35a3 /src/core
parentef52fd44af405f847236089fb587f91028c5edc8 (diff)
fixes #2314 (StdMsg: Focus doesn't follow tab switching)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdmsg/src/msgdialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp
index c1bc480784..20835dfe21 100644
--- a/src/core/stdmsg/src/msgdialog.cpp
+++ b/src/core/stdmsg/src/msgdialog.cpp
@@ -331,6 +331,8 @@ void CMsgDialog::OnActivate()
UpdateLastMessage();
FixTabIcons();
}
+
+ SetFocus(m_message.GetHwnd());
}
void CMsgDialog::onClick_Filter(CCtrlButton *pButton)
@@ -921,7 +923,6 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
if (LOWORD(wParam) != WA_ACTIVE)
break;
- SetFocus(m_message.GetHwnd());
__fallthrough;
case WM_MOUSEACTIVATE: