Added a new large icon for the PuTTY config box. Doesn't show up in
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 13 May 2001 10:45:56 +0000 (10:45 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 13 May 2001 10:45:56 +0000 (10:45 +0000)
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

puttycfg.ico [new file with mode: 0644]
win_res.h
win_res.rc
windlg.c

diff --git a/puttycfg.ico b/puttycfg.ico
new file mode 100644 (file)
index 0000000..d90bfc2
Binary files /dev/null and b/puttycfg.ico differ
index 29437e0..0b6148f 100644 (file)
--- 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
index 1ac6332..a5622ea 100644 (file)
@@ -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
index 99cd9c3..9bded2d 100644 (file)
--- 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.
         */