1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-11 08:08:06 -05:00

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.

[originally from svn r1112]
This commit is contained in:
Simon Tatham 2001-05-13 10:45:56 +00:00
parent ead5547e26
commit 275e14673b
4 changed files with 5 additions and 0 deletions

BIN
puttycfg.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -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

View 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

View File

@ -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.
*/