mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-28 15:24:49 -05:00
Make the Event Log scroll down when more things appear on it
[originally from svn r618]
This commit is contained in:
parent
6522c357fc
commit
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user