The About box now contains a button that starts up a browser pointing
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 9 Apr 2001 12:23:45 +0000 (12:23 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 9 Apr 2001 12:23:45 +0000 (12:23 +0000)
at the PuTTY web site. Thanks to Eric Theriault.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1030 cda61777-01e9-0310-a592-d414129be87e

Makefile
win_res.h
win_res.rc
windlg.c

index b9ace8c..b1261d2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -161,6 +161,7 @@ putty.rsp: makefile
        echo $(PRESRC) >> putty.rsp
        echo $(LIBS1) >> putty.rsp
        echo $(LIBS2) >> putty.rsp
+       echo $(LIBS3) >> putty.rsp
        echo $(SOCK1) >> putty.rsp
 
 puttytel.rsp: makefile
@@ -174,6 +175,7 @@ puttytel.rsp: makefile
        echo $(PRESRC) >> puttytel.rsp
        echo $(LIBS1) >> puttytel.rsp
        echo $(LIBS2) >> puttytel.rsp
+       echo $(LIBS3) >> puttytel.rsp
        echo $(SOCK1) >> puttytel.rsp
 
 pageant.rsp: makefile
index e2fbb74..29437e0 100644 (file)
--- a/win_res.h
+++ b/win_res.h
@@ -17,6 +17,7 @@
 #define IDA_VERSION     1003
 #define IDA_TEXT2       1004
 #define IDA_LICENCE     1005
+#define IDA_WEB         1006
 
 #define IDC_TAB         1001
 #define IDC_TABSTATIC1  1002
index 156019d..1ac6332 100644 (file)
 
 IDI_MAINICON ICON "putty.ico"
 
-/* Accelerators used: cl */
-IDD_ABOUTBOX DIALOG DISCARDABLE 140, 40, 136, 70
+/* Accelerators used: clw */
+IDD_ABOUTBOX DIALOG DISCARDABLE 140, 40, 214, 70
 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
 CAPTION "About PuTTY"
 FONT 8, "MS Sans Serif"
 BEGIN
-    DEFPUSHBUTTON "&Close", IDOK, 82, 52, 48, 14
+    DEFPUSHBUTTON "&Close", IDOK, 160, 52, 48, 14
     PUSHBUTTON "View &Licence", IDA_LICENCE, 6, 52, 70, 14
-    CTEXT "PuTTY", IDA_TEXT1, 10, 6, 120, 8
-    CTEXT "", IDA_VERSION, 10, 16, 120, 16
+    PUSHBUTTON "Visit &Web Site", IDA_WEB, 84, 52, 70, 14
+    CTEXT "PuTTY", IDA_TEXT1, 10, 6, 194, 8
+    CTEXT "", IDA_VERSION, 10, 16, 194, 16
     CTEXT "\251 1997-2001 Simon Tatham. All rights reserved.",
-          IDA_TEXT2, 10, 34, 120, 16
+          IDA_TEXT2, 10, 34, 194, 16
 END
 
 /* Accelerators used: aco */
index 391938a..0120a3b 100644 (file)
--- a/windlg.c
+++ b/windlg.c
@@ -168,6 +168,13 @@ static int CALLBACK AboutProc (HWND hwnd, UINT msg,
            EnableWindow(hwnd, 1);
             SetActiveWindow(hwnd);
            return 0;
+
+          case IDA_WEB:
+            /* 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: