From a65c240af2bf7874a23060b9497e4da138b42a09 Mon Sep 17 00:00:00 2001 From: Gammasoft Date: Thu, 5 Oct 2023 20:08:08 +0200 Subject: [PATCH] Set assert dialog top most --- src/xtd.core.native.win32/src/xtd/native/win32/debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xtd.core.native.win32/src/xtd/native/win32/debugger.cpp b/src/xtd.core.native.win32/src/xtd/native/win32/debugger.cpp index e3f1588927b2..d4795f63cc7a 100644 --- a/src/xtd.core.native.win32/src/xtd/native/win32/debugger.cpp +++ b/src/xtd.core.native.win32/src/xtd/native/win32/debugger.cpp @@ -42,7 +42,7 @@ bool debugger::launch() { } int_least32_t debugger::show_assert_dialog(const std::string& text, const std::string& caption) { - return MessageBox(nullptr, win32::strings::to_wstring(text).c_str(), win32::strings::to_wstring(caption).c_str(), MB_ICONERROR | MB_ABORTRETRYIGNORE | MB_DEFBUTTON3); + return MessageBox(nullptr, win32::strings::to_wstring(text).c_str(), win32::strings::to_wstring(caption).c_str(), MB_TOPMOST | MB_ICONERROR | MB_ABORTRETRYIGNORE | MB_DEFBUTTON3); } void debugger::log(int_least32_t level, const std::string& category, const std::string& message) {