Skip to content

Commit

Permalink
FauxFaux#5: Override text and URL in the about dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux committed Dec 13, 2011
1 parent dda1c99 commit 4eb0817
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions windows/win_res.rc2
Expand Up @@ -18,13 +18,13 @@ IDI_CFGICON ICON "puttycfg.ico"
/* Accelerators used: clw */
IDD_ABOUTBOX DIALOG DISCARDABLE 140, 40, 214, 70
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About PuTTY"
CAPTION "About PuTTY Tray, a fork of PuTTY"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "&Close", IDOK, 160, 52, 48, 14
PUSHBUTTON "View &Licence", IDA_LICENCE, 6, 52, 70, 14
PUSHBUTTON "Visit &Web Site", IDA_WEB, 84, 52, 70, 14
CTEXT "PuTTY", IDA_TEXT1, 10, 6, 194, 8
CTEXT "PuTTY Tray, fork of PuTTY", IDA_TEXT1, 10, 6, 194, 8
CTEXT "", IDA_VERSION, 10, 16, 194, 16
CTEXT "\251 1997-2011 Simon Tatham. All rights reserved.",
IDA_TEXT2, 10, 34, 194, 16
Expand Down
6 changes: 1 addition & 5 deletions windows/windlg.c
Expand Up @@ -194,10 +194,6 @@ static int CALLBACK AboutProc(HWND hwnd, UINT msg,

switch (msg) {
case WM_INITDIALOG:
str = dupprintf("About %s", appname);
SetWindowText(hwnd, str);
sfree(str);
SetDlgItemText(hwnd, IDA_TEXT1, appname);
SetDlgItemText(hwnd, IDA_VERSION, ver);
return 1;
case WM_COMMAND:
Expand All @@ -217,7 +213,7 @@ static int CALLBACK AboutProc(HWND hwnd, UINT msg,
case IDA_WEB:
/* Load web browser */
ShellExecute(hwnd, "open",
"http://www.chiark.greenend.org.uk/~sgtatham/putty/",
"http://puttytray.goeswhere.com/",
0, 0, SW_SHOWDEFAULT);
return 0;
}
Expand Down

0 comments on commit 4eb0817

Please sign in to comment.