fixed another makensisw bug (two stray chars after text for me) -- hopefully this didn't break anything
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1264 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
280922d116
commit
a4366836ab
2 changed files with 3 additions and 2 deletions
|
@ -301,7 +301,7 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
|
||||||
}
|
}
|
||||||
case IDM_COPYSELECTED:
|
case IDM_COPYSELECTED:
|
||||||
{
|
{
|
||||||
SendMessage(GetDlgItem(g_hwnd,IDC_LOGWIN), WM_COPY, 0, 0);
|
SendDlgItemMessage(g_hwnd,IDC_LOGWIN, WM_COPY, 0, 0);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
case IDM_SAVE:
|
case IDM_SAVE:
|
||||||
|
|
|
@ -69,7 +69,8 @@ void ClearLog(HWND hwnd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogMessage(HWND hwnd,const char *str) {
|
void LogMessage(HWND hwnd,const char *str) {
|
||||||
DWORD dwLength = SendDlgItemMessage(hwnd, IDC_LOGWIN, WM_GETTEXTLENGTH, 0, 0);
|
GETTEXTLENGTHEX tl={GTL_DEFAULT,CP_ACP};
|
||||||
|
DWORD dwLength = SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_GETTEXTLENGTHEX, (WPARAM)&tl, 0);
|
||||||
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_SETSEL, dwLength, dwLength);
|
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_SETSEL, dwLength, dwLength);
|
||||||
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_REPLACESEL, 0, (WPARAM)str);
|
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_REPLACESEL, 0, (WPARAM)str);
|
||||||
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_SCROLLCARET, 0, 0);
|
SendDlgItemMessage(hwnd, IDC_LOGWIN, EM_SCROLLCARET, 0, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue