Closing the About box now returns focus to the config box, and likewise
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 22 Sep 2000 09:38:35 +0000 (09:38 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 22 Sep 2000 09:38:35 +0000 (09:38 +0000)
closing the Licence box returns focus to the About box

git-svn-id: svn://svn.tartarus.org/sgt/putty@611 cda61777-01e9-0310-a592-d414129be87e

windlg.c

index 9db775f..ca86914 100644 (file)
--- a/windlg.c
+++ b/windlg.c
@@ -478,6 +478,7 @@ static int CALLBACK AboutProc (HWND hwnd, UINT msg,
            DialogBox (hinst, MAKEINTRESOURCE(IDD_LICENCEBOX),
                       NULL, LicenceProc);
            EnableWindow(hwnd, 1);
+            SetActiveWindow(hwnd);
            return 0;
        }
        return 0;
@@ -1467,6 +1468,7 @@ static int CALLBACK MainDlgProc (HWND hwnd, UINT msg,
        DialogBox(hinst, MAKEINTRESOURCE(IDD_ABOUTBOX),
                  GetParent(hwnd), AboutProc);
        EnableWindow(hwnd, 1);
+        SetActiveWindow(hwnd);
     }
     return GenericMainDlgProc (hwnd, msg, wParam, lParam,
                               MAIN_NPANELS, mainp, &page);