mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 19:41:01 -05:00
Malcolm Rowe's UI tweak patch for About/Licence: recognise `Esc' to close
windows (PuTTY, Pageant, PuTTYgen); Licence window parent in PuTTY. [originally from svn r4715]
This commit is contained in:
@ -197,6 +197,7 @@ static int CALLBACK LicenceProc(HWND hwnd, UINT msg,
|
||||
case WM_COMMAND:
|
||||
switch (LOWORD(wParam)) {
|
||||
case IDOK:
|
||||
case IDCANCEL:
|
||||
EndDialog(hwnd, 1);
|
||||
return 0;
|
||||
}
|
||||
@ -221,6 +222,7 @@ static int CALLBACK AboutProc(HWND hwnd, UINT msg,
|
||||
case WM_COMMAND:
|
||||
switch (LOWORD(wParam)) {
|
||||
case IDOK:
|
||||
case IDCANCEL:
|
||||
aboutbox = NULL;
|
||||
DestroyWindow(hwnd);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user