1

所以我有以下代码,只要它被调用,它就会出现在其他所有内容的后面。有谁知道我如何确保这个提示每次都出现在前面?

sPromptA = "Question that is asked to user";

MODE = NORMALMODE;

if (NO = AskYesNo(sPromptA, NO)) then
    MODE = SILENTMODE;
4

1 回答 1

2

您可以解决此问题:

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;
于 2014-03-26T04:04:37.313 回答