Added custom log colors and customizable sounds.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7126 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8a21b59c93
commit
6c6725d3eb
6 changed files with 55 additions and 5 deletions
|
@ -468,18 +468,24 @@ INT_PTR CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam
|
|||
}
|
||||
EnableItems(g_sdata.hwnd);
|
||||
if (!g_sdata.retcode) {
|
||||
MessageBeep(MB_ICONASTERISK);
|
||||
if (g_sdata.warnings)
|
||||
if (g_sdata.warnings) {
|
||||
SetTitle(g_sdata.hwnd,_T("Finished with Warnings"));
|
||||
else
|
||||
PlayAppSoundAsync(("BuildWarning"), MB_ICONWARNING);
|
||||
SetLogColor(LC_WARNING);
|
||||
}
|
||||
else {
|
||||
SetTitle(g_sdata.hwnd,_T("Finished Sucessfully"));
|
||||
PlayAppSoundAsync(("BuildComplete"), MB_ICONASTERISK);
|
||||
SetLogColor(LC_SUCCESS);
|
||||
}
|
||||
// Added by Darren Owen (DrO) on 1/10/2003
|
||||
if(g_sdata.recompile_test)
|
||||
PostMessage(g_sdata.hwnd, WM_COMMAND, LOWORD(IDC_TEST), 0);
|
||||
}
|
||||
else {
|
||||
MessageBeep(MB_ICONEXCLAMATION);
|
||||
SetTitle(g_sdata.hwnd,_T("Compile Error: See Log for Details"));
|
||||
PlayAppSoundAsync(("BuildError"), MB_ICONEXCLAMATION);
|
||||
SetLogColor(LC_ERROR);
|
||||
}
|
||||
|
||||
// Added by Darren Owen (DrO) on 1/10/2003
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue