Make win32 messageBox always TOPMOST (#2221)

Windows: messageBox should be "always" TOPMOST
This commit is contained in:
aismann 2024-10-28 14:24:20 +01:00 committed by GitHub
parent 044cc87543
commit c993da1b30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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/
@ -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);
}
}