зеркало из https://github.com/github/putty.git
Make the Event Log scroll down when more things appear on it
[originally from svn r618]
This commit is contained in:
Родитель
6522c357fc
Коммит
ddbc120725
6
windlg.c
6
windlg.c
|
@ -1579,9 +1579,13 @@ void logevent (char *string) {
|
|||
events[nevents] = smalloc(1+strlen(string));
|
||||
strcpy (events[nevents], string);
|
||||
nevents++;
|
||||
if (logbox)
|
||||
if (logbox) {
|
||||
int count;
|
||||
SendDlgItemMessage (logbox, IDN_LIST, LB_ADDSTRING,
|
||||
0, (LPARAM)string);
|
||||
count = SendDlgItemMessage (logbox, IDN_LIST, LB_GETCOUNT, 0, 0);
|
||||
SendDlgItemMessage (logbox, IDN_LIST, LB_SETCURSEL, count-1, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void showeventlog (HWND hwnd) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче