]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Pageant and PuTTYgen About boxes: add the website button.
authorSimon Tatham <anakin@pobox.com>
Wed, 22 Feb 2017 06:56:43 +0000 (06:56 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 22 Feb 2017 07:06:00 +0000 (07:06 +0000)
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.

windows/pageant.rc
windows/puttygen.rc
windows/winpgen.c
windows/winpgnt.c

index b7ec81e037d259bcd2068c15c4eeec94384897d2..65bbbefc205c564d34adc0a6ac8f39b75219d452 100644 (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
 
index 9a259da5a0647f7882ed4b17747bd504bd28ae36..38e7b35ba0b04b787786a63aa4373246e29c5345 100644 (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
 
index 98c2097ebb8400c7957346121e13fdd6b31192e3..c4f4de45b4b180de18a6dda492bc7d9e0c64d0e5 100644 (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:
index fe0822e4889f4f10706cbe7b63cae9d53e783252..70f3d2ca531b66ac88347890f377daaa36bd2843 100644 (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: