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:
parent
f818377914
commit
b8b25ac487
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue