]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Added a new large icon for the PuTTY config box. Doesn't show up in
authorSimon Tatham <anakin@pobox.com>
Sun, 13 May 2001 10:45:56 +0000 (10:45 +0000)
committerSimon Tatham <anakin@pobox.com>
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.

[originally from svn r1112]

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 29437e055f1a5e9961955e236563af529e857146..0b6148fc04e1c47215c341c4584a8487d8510640 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 1ac6332e1e30f637b4e2fc8fdc3b3be80e0d326b..a5622ea8ec4c785bbabac8b80c6bb580f299c8bc 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 99cd9c393efa78733430cc6c8a6888b2cc65c633..9bded2da467ea2b3766440866a1cf2f5f24a1095 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.
         */