Now tries to unselect before logging

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@953 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-09-07 12:57:30 +00:00
parent 6f27bee7ad
commit f92b6409f1

View file

@ -58,7 +58,7 @@ char *g_input_script;
extern BOOL g_warnings;
void LogMessage(HWND hwnd,const char *str) {
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_REPLACESEL, -1, 0);
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_SETSEL, -1, 0);
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_REPLACESEL, 0, (WPARAM)str);
SendDlgItemMessage(hwnd, IDC_LOGWIN, WM_VSCROLL, SB_BOTTOM, 0);
}