Skip to content

Commit 9ae3f6f

Browse files
committed
Make taskbar icon look a lot better on Windows 10.
1 parent ed51703 commit 9ae3f6f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

config/config.c

+4
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ BOOL CALLBACK PropSheetProc(HWND hwnd, UINT msg, LPARAM lParam) {
155155
SetWindowSubclass(g_cfgwnd, PropSheetWinProc, 0, 0);
156156
UpdateStrings();
157157

158+
// Set new icon specifically for the taskbar and Alt+Tab, without changing window icon
159+
HICON taskbar_icon = LoadImage(g_hinst, L"taskbar_icon", IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR);
160+
SendMessage(g_cfgwnd, WM_SETICON, ICON_BIG, (LPARAM)taskbar_icon);
161+
158162
// OK button replaces Cancel button
159163
SendMessage(g_cfgwnd, PSM_CANCELTOCLOSE, 0, 0);
160164
HWND cancel = GetDlgItem(g_cfgwnd, IDCANCEL);

include/altdrag.rc

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
app_icon ICON "media/icon.ico"
2+
taskbar_icon ICON "media/taskbar.ico"
23
tray_disabled ICON "media/tray-disabled.ico"
34
tray_enabled ICON "media/tray-enabled.ico"
45

@@ -27,11 +28,11 @@ BEGIN
2728
BLOCK "040904b0"
2829
BEGIN
2930
VALUE "FileDescription", "AltDrag"
30-
VALUE "FileVersion", "1.0"
31+
VALUE "FileVersion", "1.1"
3132
VALUE "InternalName", "altdrag"
3233
VALUE "OriginalFilename", "AltDrag.exe"
3334
VALUE "CompanyName", "Stefan Sundin"
34-
VALUE "LegalCopyright", "� Stefan Sundin 2015"
35+
VALUE "LegalCopyright", "� Stefan Sundin 2015"
3536
END
3637
END
3738
BLOCK "VarFileInfo"

media/taskbar.ico

510 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)