1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

Updated windows message-box to use topmost instead of foreground

This commit is contained in:
Bryan Roe
2019-10-30 15:31:18 -07:00
parent 6b8b25ebf9
commit dd095e5264
2 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -52,7 +52,7 @@ var childScript = "\
var GM = require('_GenericMarshal');\ var GM = require('_GenericMarshal');\
var user32 = GM.CreateNativeProxy('user32.dll');\ var user32 = GM.CreateNativeProxy('user32.dll');\
user32.CreateMethod('MessageBoxA');\ user32.CreateMethod('MessageBoxA');\
user32.MessageBoxA.async(0, GM.CreateVariable(j.caption), GM.CreateVariable(j.title), " + (MB_YESNO | MB_DEFBUTTON2 | MB_ICONEXCLAMATION | MB_SETFOREGROUND).toString() + ").then(\ user32.MessageBoxA.async(0, GM.CreateVariable(j.caption), GM.CreateVariable(j.title), " + (MB_YESNO | MB_DEFBUTTON2 | MB_ICONEXCLAMATION | MB_TOPMOST).toString() + ").then(\
function(r)\ function(r)\
{\ {\
if(r.Val == " + IDYES.toString() + ")\ if(r.Val == " + IDYES.toString() + ")\