summaryrefslogtreecommitdiff
path: root/src/core/stdmsg
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stdmsg')
-rw-r--r--src/core/stdmsg/src/msgdialog.cpp8
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());
}