1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

Windows: Set the MB_TOPMOST flag for native alert windows if there are any alwaysOnTop JUCE windows so it doesn't get stuck behind them

This commit is contained in:
ed 2018-08-21 09:15:16 +01:00
parent f818377914
commit b8b25ac487

View file

@ -4211,6 +4211,11 @@ private:
{
UINT flags = MB_TASKMODAL | MB_SETFOREGROUND;
// this window can get lost behind JUCE windows which are set to be alwaysOnTop
// so if there are any set it to be topmost
if (juce_areThereAnyAlwaysOnTopWindows())
flags |= MB_TOPMOST;
switch (iconType)
{
case AlertWindow::QuestionIcon: flags |= MB_ICONQUESTION; break;