+ opt: MiniPath optimized resource file (icon/bitmap placement)

This commit is contained in:
Rainer Kottenhoff 2018-06-28 14:02:54 +02:00
parent f08cb7dac4
commit bca60b035c
17 changed files with 6 additions and 3 deletions

View File

@ -5,7 +5,10 @@
//
#define IDC_STATIC (-1)
#define IDR_MAINWND 100
#define IDR_MAINWND 80
#define IDR_MAINWND128 81
#define IDR_MAINWND64 82
#define IDR_MAINWND48 83
#define IDC_COMMANDLINE 100
#define IDD_ABOUT 100
#define IDC_VERSION 100

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -384,7 +384,7 @@ BOOL InitApplication(HINSTANCE hInstance)
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(hInstance,MAKEINTRESOURCE(IDR_MAINWND));
wc.hIcon = LoadIcon(hInstance,MAKEINTRESOURCE(IDR_MAINWND128));
wc.hCursor = LoadCursor(hInstance,IDC_ARROW);
wc.hbrBackground = (HBRUSH)(COLOR_3DFACE+1);
wc.lpszMenuName = NULL;
@ -3787,7 +3787,7 @@ void ShowNotifyIcon(HWND hwnd,BOOL bAdd)
NOTIFYICONDATA nid;
if (!hIcon) {
hIcon = LoadImage(g_hInstance, MAKEINTRESOURCE(IDR_MAINWND), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
hIcon = LoadImage(g_hInstance, MAKEINTRESOURCE(IDR_MAINWND48), IMAGE_ICON, 32, 32, LR_DEFAULTCOLOR);
}
ZeroMemory(&nid,sizeof(NOTIFYICONDATA));
nid.cbSize = sizeof(NOTIFYICONDATA);

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 83 KiB

BIN
res/Notepad3_48.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
res/Notepad3_64.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB