From: Simon Tatham Date: Wed, 22 Feb 2017 06:56:43 +0000 (+0000) Subject: Pageant and PuTTYgen About boxes: add the website button. X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=9ce982622f9ab07b85cbb06d06f53b71fb9558a9;p=PuTTY.git 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. --- 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: