Skip to content

Commit

Permalink
Windows: messageBox should be "always" TOPMOST
Browse files Browse the repository at this point in the history
  • Loading branch information
aismann authored Oct 27, 2024
1 parent 044cc87 commit 22066bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/platform/win32/Common-win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md).
https://axmol.dev/
Expand Down Expand Up @@ -36,7 +37,7 @@ void messageBox(const char* pszMsg, const char* pszTitle)
{
std::wstring wsMsg = ntcvt::from_chars(pszMsg);
std::wstring wsTitle = ntcvt::from_chars(pszTitle);
MessageBoxW(nullptr, wsMsg.c_str(), wsTitle.c_str(), MB_OK);
MessageBoxW(nullptr, wsMsg.c_str(), wsTitle.c_str(), MB_OK | MB_TOPMOST);
}

}

0 comments on commit 22066bd

Please sign in to comment.