]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
The About box now contains a button that starts up a browser pointing
authorSimon Tatham <anakin@pobox.com>
Mon, 9 Apr 2001 12:23:45 +0000 (12:23 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 9 Apr 2001 12:23:45 +0000 (12:23 +0000)
at the PuTTY web site. Thanks to Eric Theriault.

[originally from svn r1030]

Makefile
win_res.h
win_res.rc
windlg.c

index b9ace8cf9f9ce23ca07ae18ce33b2875017bb8bc..b1261d252abd39c7e352de1ee4512c4528fe03c1 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 e2fbb7436a918ed60de6f32d9a7801a4cb2fe06b..29437e055f1a5e9961955e236563af529e857146 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 156019d40a84581dff50849ed6453713055d527a..1ac6332e1e30f637b4e2fc8fdc3b3be80e0d326b 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 391938a80fe667472615ed784b4d1719519b87af..0120a3b09e8fa0cc99c9a1cf453878f55aa365ab 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: