mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 01:32:25 +00:00
Closing the About box now returns focus to the config box, and likewise
closing the Licence box returns focus to the About box [originally from svn r611]
This commit is contained in:
parent
c320531909
commit
c89ca570fe
2
windlg.c
2
windlg.c
@ -478,6 +478,7 @@ static int CALLBACK AboutProc (HWND hwnd, UINT msg,
|
|||||||
DialogBox (hinst, MAKEINTRESOURCE(IDD_LICENCEBOX),
|
DialogBox (hinst, MAKEINTRESOURCE(IDD_LICENCEBOX),
|
||||||
NULL, LicenceProc);
|
NULL, LicenceProc);
|
||||||
EnableWindow(hwnd, 1);
|
EnableWindow(hwnd, 1);
|
||||||
|
SetActiveWindow(hwnd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
@ -1467,6 +1468,7 @@ static int CALLBACK MainDlgProc (HWND hwnd, UINT msg,
|
|||||||
DialogBox(hinst, MAKEINTRESOURCE(IDD_ABOUTBOX),
|
DialogBox(hinst, MAKEINTRESOURCE(IDD_ABOUTBOX),
|
||||||
GetParent(hwnd), AboutProc);
|
GetParent(hwnd), AboutProc);
|
||||||
EnableWindow(hwnd, 1);
|
EnableWindow(hwnd, 1);
|
||||||
|
SetActiveWindow(hwnd);
|
||||||
}
|
}
|
||||||
return GenericMainDlgProc (hwnd, msg, wParam, lParam,
|
return GenericMainDlgProc (hwnd, msg, wParam, lParam,
|
||||||
MAIN_NPANELS, mainp, &page);
|
MAIN_NPANELS, mainp, &page);
|
||||||
|
Loading…
Reference in New Issue
Block a user