mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-17 19:18:06 -05:00
Set some parent windows on PuTTYgen and Pageant About/Licence dialog to
improve window management behaviour. [originally from svn r2822]
This commit is contained in:
parent
8c9ac4ac48
commit
ae0a12c938
@ -231,7 +231,7 @@ static int CALLBACK AboutProc(HWND hwnd, UINT msg,
|
|||||||
return 0;
|
return 0;
|
||||||
case 101:
|
case 101:
|
||||||
EnableWindow(hwnd, 0);
|
EnableWindow(hwnd, 0);
|
||||||
DialogBox(instance, MAKEINTRESOURCE(214), NULL, LicenceProc);
|
DialogBox(instance, MAKEINTRESOURCE(214), hwnd, LicenceProc);
|
||||||
EnableWindow(hwnd, 1);
|
EnableWindow(hwnd, 1);
|
||||||
SetActiveWindow(hwnd);
|
SetActiveWindow(hwnd);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -297,7 +297,7 @@ static int CALLBACK AboutProc(HWND hwnd, UINT msg,
|
|||||||
return 0;
|
return 0;
|
||||||
case 101:
|
case 101:
|
||||||
EnableWindow(hwnd, 0);
|
EnableWindow(hwnd, 0);
|
||||||
DialogBox(hinst, MAKEINTRESOURCE(214), NULL, LicenceProc);
|
DialogBox(hinst, MAKEINTRESOURCE(214), hwnd, LicenceProc);
|
||||||
EnableWindow(hwnd, 1);
|
EnableWindow(hwnd, 1);
|
||||||
SetActiveWindow(hwnd);
|
SetActiveWindow(hwnd);
|
||||||
return 0;
|
return 0;
|
||||||
@ -1035,7 +1035,7 @@ static int CALLBACK MainDlgProc(HWND hwnd, UINT msg,
|
|||||||
break;
|
break;
|
||||||
case IDC_ABOUT:
|
case IDC_ABOUT:
|
||||||
EnableWindow(hwnd, 0);
|
EnableWindow(hwnd, 0);
|
||||||
DialogBox(hinst, MAKEINTRESOURCE(213), NULL, AboutProc);
|
DialogBox(hinst, MAKEINTRESOURCE(213), hwnd, AboutProc);
|
||||||
EnableWindow(hwnd, 1);
|
EnableWindow(hwnd, 1);
|
||||||
SetActiveWindow(hwnd);
|
SetActiveWindow(hwnd);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user