From cd9778e2a90ef89d10970f5483b2dcebc797d078 Mon Sep 17 00:00:00 2001 From: jacob Date: Fri, 7 Feb 2003 14:22:19 +0000 Subject: [PATCH] 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 --- pageant.c | 2 +- puttygen.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.11.0