From b475bd5e0041f62787e4921e513ee7a53eabfe2d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Jul 2022 20:20:03 +0300 Subject: fixes #3121 (Accessibility: Message history can no longer be read with screen readers) --- src/core/stdmsg/src/msgdialog.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/core/stdmsg') diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 6ef54f7878..5cfc8af0e2 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -217,12 +217,16 @@ bool CMsgDialog::OnInitDialog() } } + uint32_t dwFlags = SWP_NOMOVE | SWP_NOSIZE; + if (!g_Settings.bTabsEnable) + dwFlags |= SWP_SHOWWINDOW; + if (m_bNoActivate) { - SetWindowPos(m_hwnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); + SetWindowPos(m_hwnd, HWND_BOTTOM, 0, 0, 0, 0, dwFlags | SWP_NOACTIVATE); StartFlash(); } else { - SetWindowPos(m_hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); + SetWindowPos(m_hwnd, HWND_TOP, 0, 0, 0, 0, dwFlags); SetForegroundWindow(m_hwnd); SetFocus(m_message.GetHwnd()); } -- cgit v1.2.3