mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-21 22:28:37 -05:00
The About box now contains a button that starts up a browser pointing
at the PuTTY web site. Thanks to Eric Theriault. [originally from svn r1030]
This commit is contained in:
parent
2c39b69a52
commit
0d419ab966
2
Makefile
2
Makefile
@ -161,6 +161,7 @@ putty.rsp: makefile
|
|||||||
echo $(PRESRC) >> putty.rsp
|
echo $(PRESRC) >> putty.rsp
|
||||||
echo $(LIBS1) >> putty.rsp
|
echo $(LIBS1) >> putty.rsp
|
||||||
echo $(LIBS2) >> putty.rsp
|
echo $(LIBS2) >> putty.rsp
|
||||||
|
echo $(LIBS3) >> putty.rsp
|
||||||
echo $(SOCK1) >> putty.rsp
|
echo $(SOCK1) >> putty.rsp
|
||||||
|
|
||||||
puttytel.rsp: makefile
|
puttytel.rsp: makefile
|
||||||
@ -174,6 +175,7 @@ puttytel.rsp: makefile
|
|||||||
echo $(PRESRC) >> puttytel.rsp
|
echo $(PRESRC) >> puttytel.rsp
|
||||||
echo $(LIBS1) >> puttytel.rsp
|
echo $(LIBS1) >> puttytel.rsp
|
||||||
echo $(LIBS2) >> puttytel.rsp
|
echo $(LIBS2) >> puttytel.rsp
|
||||||
|
echo $(LIBS3) >> puttytel.rsp
|
||||||
echo $(SOCK1) >> puttytel.rsp
|
echo $(SOCK1) >> puttytel.rsp
|
||||||
|
|
||||||
pageant.rsp: makefile
|
pageant.rsp: makefile
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#define IDA_VERSION 1003
|
#define IDA_VERSION 1003
|
||||||
#define IDA_TEXT2 1004
|
#define IDA_TEXT2 1004
|
||||||
#define IDA_LICENCE 1005
|
#define IDA_LICENCE 1005
|
||||||
|
#define IDA_WEB 1006
|
||||||
|
|
||||||
#define IDC_TAB 1001
|
#define IDC_TAB 1001
|
||||||
#define IDC_TABSTATIC1 1002
|
#define IDC_TABSTATIC1 1002
|
||||||
|
13
win_res.rc
13
win_res.rc
@ -16,18 +16,19 @@
|
|||||||
|
|
||||||
IDI_MAINICON ICON "putty.ico"
|
IDI_MAINICON ICON "putty.ico"
|
||||||
|
|
||||||
/* Accelerators used: cl */
|
/* Accelerators used: clw */
|
||||||
IDD_ABOUTBOX DIALOG DISCARDABLE 140, 40, 136, 70
|
IDD_ABOUTBOX DIALOG DISCARDABLE 140, 40, 214, 70
|
||||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||||
CAPTION "About PuTTY"
|
CAPTION "About PuTTY"
|
||||||
FONT 8, "MS Sans Serif"
|
FONT 8, "MS Sans Serif"
|
||||||
BEGIN
|
BEGIN
|
||||||
DEFPUSHBUTTON "&Close", IDOK, 82, 52, 48, 14
|
DEFPUSHBUTTON "&Close", IDOK, 160, 52, 48, 14
|
||||||
PUSHBUTTON "View &Licence", IDA_LICENCE, 6, 52, 70, 14
|
PUSHBUTTON "View &Licence", IDA_LICENCE, 6, 52, 70, 14
|
||||||
CTEXT "PuTTY", IDA_TEXT1, 10, 6, 120, 8
|
PUSHBUTTON "Visit &Web Site", IDA_WEB, 84, 52, 70, 14
|
||||||
CTEXT "", IDA_VERSION, 10, 16, 120, 16
|
CTEXT "PuTTY", IDA_TEXT1, 10, 6, 194, 8
|
||||||
|
CTEXT "", IDA_VERSION, 10, 16, 194, 16
|
||||||
CTEXT "\251 1997-2001 Simon Tatham. All rights reserved.",
|
CTEXT "\251 1997-2001 Simon Tatham. All rights reserved.",
|
||||||
IDA_TEXT2, 10, 34, 120, 16
|
IDA_TEXT2, 10, 34, 194, 16
|
||||||
END
|
END
|
||||||
|
|
||||||
/* Accelerators used: aco */
|
/* Accelerators used: aco */
|
||||||
|
7
windlg.c
7
windlg.c
@ -168,6 +168,13 @@ static int CALLBACK AboutProc (HWND hwnd, UINT msg,
|
|||||||
EnableWindow(hwnd, 1);
|
EnableWindow(hwnd, 1);
|
||||||
SetActiveWindow(hwnd);
|
SetActiveWindow(hwnd);
|
||||||
return 0;
|
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;
|
return 0;
|
||||||
case WM_CLOSE:
|
case WM_CLOSE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user