Added warnings to titlebar
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@779 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
79df7a5bf4
commit
69182b36aa
2 changed files with 9 additions and 1 deletions
|
@ -56,6 +56,8 @@ void ClearLog(HWND hwnd) {
|
|||
char g_output_exe[1024];
|
||||
char g_input_script[1024];
|
||||
BOOL g_input_found;
|
||||
extern BOOL g_warnings;
|
||||
|
||||
void LogMessage(HWND hwnd,const char *str) {
|
||||
if (!str || !*str) return;
|
||||
int len=SendDlgItemMessage(hwnd,IDC_LOGWIN,WM_GETTEXTLENGTH,0,0);
|
||||
|
@ -77,6 +79,9 @@ void LogMessage(HWND hwnd,const char *str) {
|
|||
g_input_found=TRUE;
|
||||
}
|
||||
}
|
||||
if (my_strstr(existing_text," warning:")||my_strstr(existing_text," warnings:")) {
|
||||
g_warnings = TRUE;
|
||||
}
|
||||
SetDlgItemText(hwnd, IDC_LOGWIN, existing_text);
|
||||
SendDlgItemMessage(hwnd, IDC_LOGWIN,EM_SETSEL,lstrlen(existing_text),lstrlen(existing_text));
|
||||
SendDlgItemMessage(hwnd, IDC_LOGWIN,EM_SCROLLCARET,0,0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue