Make the message box a TASKMODEL to prevent interation with the editor.

This commit is contained in:
MineBill
2023-10-24 18:03:07 +03:00
parent 806590d1c3
commit 6f773bd558

View File

@@ -451,6 +451,7 @@ DialogResult MessageBox::Show(Window* parent, const StringView& text, const Stri
default:
break;
}
flags |= MB_TASKMODAL;
// Show dialog
int result = MessageBoxW(parent ? static_cast<HWND>(parent->GetNativePtr()) : nullptr, String(text).GetText(), String(caption).GetText(), flags);