From: simon Date: Sun, 13 May 2001 10:45:56 +0000 (+0000) Subject: Added a new large icon for the PuTTY config box. Doesn't show up in X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/648947d40e6b8dcce3d2a0a40ae315714c15e733?hp=274a5b41f42a133cd65225e09d0403e672fd7106 Added a new large icon for the PuTTY config box. Doesn't show up in the actual window at all, but appears in the Alt-Tab task switcher box in place of the tedious Windows Default icon. git-svn-id: svn://svn.tartarus.org/sgt/putty@1112 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/puttycfg.ico b/puttycfg.ico new file mode 100644 index 00000000..d90bfc2b Binary files /dev/null and b/puttycfg.ico differ diff --git a/win_res.h b/win_res.h index 29437e05..0b6148fc 100644 --- a/win_res.h +++ b/win_res.h @@ -2,6 +2,7 @@ #define PUTTY_WIN_RES_H #define IDI_MAINICON 200 +#define IDI_CFGICON 201 #define IDD_MAINBOX 102 #define IDD_LOGBOX 110 diff --git a/win_res.rc b/win_res.rc index 1ac6332e..a5622ea8 100644 --- a/win_res.rc +++ b/win_res.rc @@ -16,6 +16,8 @@ IDI_MAINICON ICON "putty.ico" +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 diff --git a/windlg.c b/windlg.c index 99cd9c39..9bded2da 100644 --- a/windlg.c +++ b/windlg.c @@ -1215,6 +1215,8 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg, case WM_INITDIALOG: readytogo = 0; SetWindowLong(hwnd, GWL_USERDATA, 0); + SendMessage(hwnd, WM_SETICON, (WPARAM) ICON_BIG, + (LPARAM) LoadIcon(hinst, MAKEINTRESOURCE(IDI_CFGICON))); /* * Centre the window. */