所以我有以下代码,无论何时调用它都会出现在其他所有内容之后。有没有人知道我怎么能确保这个提示每次出现在前面?
sPromptA = "Question that is asked to user";
MODE = NORMALMODE;
if (NO = AskYesNo(sPromptA, NO)) then
MODE = SILENTMODE;
答案 0 :(得分:1)
你可以解决这个问题:
HWND hRecord;
sMsg = "my message";
hRecord = MsiCreateRecord(1);
MsiRecordSetString( hRecord, 0, sMsg);
nYesNoResult = MsiProcessMessage(hMSI, INSTALLMESSAGE_USER + MB_YESNO, hRecord);
MsiCloseHandle(hRecord);
if (nYesNoResult = 6) then //6=yes 7=no
//do something
endif;