projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a couple of other sensible button defaults in MessageBox()s.
[u/mdw/putty]
/
windows
/
windlg.c
diff --git
a/windows/windlg.c
b/windows/windlg.c
index
8dd9d29
..
04470cd
100644
(file)
--- a/
windows/windlg.c
+++ b/
windows/windlg.c
@@
-793,7
+793,7
@@
void askalg(void *frontend, const char *algtype, const char *algname)
message = dupprintf(msg, algtype, algname);
title = dupprintf(mbtitle, appname);
mbret = MessageBox(NULL, message, title,
message = dupprintf(msg, algtype, algname);
title = dupprintf(mbtitle, appname);
mbret = MessageBox(NULL, message, title,
- MB_ICONWARNING | MB_YESNO);
+ MB_ICONWARNING | MB_YESNO
| MB_DEFBUTTON2
);
sfree(message);
sfree(title);
if (mbret == IDYES)
sfree(message);
sfree(title);
if (mbret == IDYES)
@@
-823,7
+823,7
@@
int askappend(void *frontend, Filename filename)
mbtitle = dupprintf("%s Log to File", appname);
mbret = MessageBox(NULL, message, mbtitle,
mbtitle = dupprintf("%s Log to File", appname);
mbret = MessageBox(NULL, message, mbtitle,
- MB_ICONQUESTION | MB_YESNOCANCEL);
+ MB_ICONQUESTION | MB_YESNOCANCEL
| MB_DEFBUTTON3
);
sfree(message);
sfree(mbtitle);
sfree(message);
sfree(mbtitle);