Now logs as should even if text is selected/cart positions changes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@990 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8005a05b1b
commit
6dc55b10b2
1 changed files with 3 additions and 2 deletions
|
@ -60,9 +60,10 @@ char *g_input_script;
|
|||
extern BOOL g_warnings;
|
||||
|
||||
void LogMessage(HWND hwnd,const char *str) {
|
||||
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_SETSEL, -1, 0);
|
||||
DWORD dwLength = SendDlgItemMessage(hwnd, IDC_LOGWIN, WM_GETTEXTLENGTH, 0, 0);
|
||||
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_SETSEL, dwLength, dwLength);
|
||||
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_REPLACESEL, 0, (WPARAM)str);
|
||||
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_SCROLLCARET, /*SB_BOTTOM*/0, 0);
|
||||
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_SCROLLCARET, 0, 0);
|
||||
}
|
||||
|
||||
void ErrorMessage(HWND hwnd,const char *str) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue