From: jacob Date: Fri, 7 Feb 2003 14:22:19 +0000 (+0000) Subject: Set some parent windows on PuTTYgen and Pageant About/Licence dialog to X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/cd9778e2a90ef89d10970f5483b2dcebc797d078?hp=336ec53c839ca001a3aa5af4c0fdd1f4462d2bcd Set some parent windows on PuTTYgen and Pageant About/Licence dialog to improve window management behaviour. git-svn-id: svn://svn.tartarus.org/sgt/putty@2822 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/pageant.c b/pageant.c index 73e950c7..50daf63e 100644 --- a/pageant.c +++ b/pageant.c @@ -231,7 +231,7 @@ static int CALLBACK AboutProc(HWND hwnd, UINT msg, return 0; case 101: EnableWindow(hwnd, 0); - DialogBox(instance, MAKEINTRESOURCE(214), NULL, LicenceProc); + DialogBox(instance, MAKEINTRESOURCE(214), hwnd, LicenceProc); EnableWindow(hwnd, 1); SetActiveWindow(hwnd); return 0; diff --git a/puttygen.c b/puttygen.c index d7094a35..dff3b4da 100644 --- a/puttygen.c +++ b/puttygen.c @@ -297,7 +297,7 @@ static int CALLBACK AboutProc(HWND hwnd, UINT msg, return 0; case 101: EnableWindow(hwnd, 0); - DialogBox(hinst, MAKEINTRESOURCE(214), NULL, LicenceProc); + DialogBox(hinst, MAKEINTRESOURCE(214), hwnd, LicenceProc); EnableWindow(hwnd, 1); SetActiveWindow(hwnd); return 0; @@ -1035,7 +1035,7 @@ static int CALLBACK MainDlgProc(HWND hwnd, UINT msg, break; case IDC_ABOUT: EnableWindow(hwnd, 0); - DialogBox(hinst, MAKEINTRESOURCE(213), NULL, AboutProc); + DialogBox(hinst, MAKEINTRESOURCE(213), hwnd, AboutProc); EnableWindow(hwnd, 1); SetActiveWindow(hwnd); return 0;