1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Pageant and PuTTYgen About boxes: add the website button.

While I'm looking at these two dialog boxes, I notice there's another
prominent difference between PuTTY's one and these: I also never got
round to adding the button to go to PuTTY's main website. Now added.
This commit is contained in:
Simon Tatham 2017-02-22 06:56:43 +00:00
parent aa68c2872c
commit 9ce982622f
4 changed files with 14 additions and 0 deletions

View File

@ -43,6 +43,7 @@ FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "&Close", IDOK, 216, 88, 48, 14
PUSHBUTTON "View &Licence", 101, 6, 88, 70, 14
PUSHBUTTON "Visit &Web Site", 102, 140, 88, 70, 14
EDITTEXT 1000, 10, 6, 250, 80, ES_READONLY | ES_MULTILINE | ES_CENTER, WS_EX_STATICEDGE
END

View File

@ -36,6 +36,7 @@ FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "&Close", IDOK, 216, 88, 48, 14
PUSHBUTTON "View &Licence", 101, 6, 88, 70, 14
PUSHBUTTON "Visit &Web Site", 102, 140, 88, 70, 14
EDITTEXT 1000, 10, 6, 250, 80, ES_READONLY | ES_MULTILINE | ES_CENTER, WS_EX_STATICEDGE
END

View File

@ -319,6 +319,12 @@ static INT_PTR CALLBACK AboutProc(HWND hwnd, UINT msg,
EnableWindow(hwnd, 1);
SetActiveWindow(hwnd);
return 0;
case 102:
/* Load web browser */
ShellExecute(hwnd, "open",
"http://www.chiark.greenend.org.uk/~sgtatham/putty/",
0, 0, SW_SHOWDEFAULT);
return 0;
}
return 0;
case WM_CLOSE:

View File

@ -175,6 +175,12 @@ static INT_PTR CALLBACK AboutProc(HWND hwnd, UINT msg,
EnableWindow(hwnd, 1);
SetActiveWindow(hwnd);
return 0;
case 102:
/* Load web browser */
ShellExecute(hwnd, "open",
"http://www.chiark.greenend.org.uk/~sgtatham/putty/",
0, 0, SW_SHOWDEFAULT);
return 0;
}
return 0;
case WM_CLOSE: