mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-18 11:38:05 -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:
parent
ead5547e26
commit
275e14673b
BIN
puttycfg.ico
Normal file
BIN
puttycfg.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
@ -2,6 +2,7 @@
|
|||||||
#define PUTTY_WIN_RES_H
|
#define PUTTY_WIN_RES_H
|
||||||
|
|
||||||
#define IDI_MAINICON 200
|
#define IDI_MAINICON 200
|
||||||
|
#define IDI_CFGICON 201
|
||||||
|
|
||||||
#define IDD_MAINBOX 102
|
#define IDD_MAINBOX 102
|
||||||
#define IDD_LOGBOX 110
|
#define IDD_LOGBOX 110
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
IDI_MAINICON ICON "putty.ico"
|
IDI_MAINICON ICON "putty.ico"
|
||||||
|
|
||||||
|
IDI_CFGICON ICON "puttycfg.ico"
|
||||||
|
|
||||||
/* Accelerators used: clw */
|
/* Accelerators used: clw */
|
||||||
IDD_ABOUTBOX DIALOG DISCARDABLE 140, 40, 214, 70
|
IDD_ABOUTBOX DIALOG DISCARDABLE 140, 40, 214, 70
|
||||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||||
|
2
windlg.c
2
windlg.c
@ -1215,6 +1215,8 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg,
|
|||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
readytogo = 0;
|
readytogo = 0;
|
||||||
SetWindowLong(hwnd, GWL_USERDATA, 0);
|
SetWindowLong(hwnd, GWL_USERDATA, 0);
|
||||||
|
SendMessage(hwnd, WM_SETICON, (WPARAM) ICON_BIG,
|
||||||
|
(LPARAM) LoadIcon(hinst, MAKEINTRESOURCE(IDI_CFGICON)));
|
||||||
/*
|
/*
|
||||||
* Centre the window.
|
* Centre the window.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user