diff --git a/windows/pageant.rc b/windows/pageant.rc index b7ec81e0..65bbbefc 100644 --- a/windows/pageant.rc +++ b/windows/pageant.rc @@ -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 diff --git a/windows/puttygen.rc b/windows/puttygen.rc index 9a259da5..38e7b35b 100644 --- a/windows/puttygen.rc +++ b/windows/puttygen.rc @@ -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 diff --git a/windows/winpgen.c b/windows/winpgen.c index 98c2097e..c4f4de45 100644 --- a/windows/winpgen.c +++ b/windows/winpgen.c @@ -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: diff --git a/windows/winpgnt.c b/windows/winpgnt.c index fe0822e4..70f3d2ca 100644 --- a/windows/winpgnt.c +++ b/windows/winpgnt.c @@ -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: