~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the Event Log scroll down when more things appear on it
[sgt/putty]
/
windlg.c
diff --git
a/windlg.c
b/windlg.c
index
77db051
..
6967f4b
100644
(file)
--- a/
windlg.c
+++ b/
windlg.c
@@
-1579,9
+1579,13
@@
void logevent (char *string) {
events[nevents] = smalloc(1+strlen(string));
strcpy (events[nevents], string);
nevents++;
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);
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) {
}
void showeventlog (HWND hwnd) {