diff options
author | George Hazan <ghazan@miranda.im> | 2022-07-25 20:20:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-07-25 20:20:03 +0300 |
commit | b475bd5e0041f62787e4921e513ee7a53eabfe2d (patch) | |
tree | 9c092c57fe9c0e749ad5fe3bcfc5a370ee7b2028 /src | |
parent | a43b5c88359a59fa950b325268498898129c9592 (diff) |
fixes #3121 (Accessibility: Message history can no longer be read with screen readers)
Diffstat (limited to 'src')
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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());
}
|