Skip to content

Commit 2b0f59f

Browse files
committed
updating icon
1 parent 78eef6e commit 2b0f59f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RBTray.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ void RefreshWindowInTray(HWND hwnd) {
138138
nid.cbSize = NOTIFYICONDATA_V2_SIZE;
139139
nid.hWnd = _hwndHook;
140140
nid.uID = (UINT)i;
141-
nid.uFlags = NIF_TIP;
141+
nid.uFlags = NIF_TIP | NIF_ICON;
142+
nid.hIcon = GetWindowIcon(hwnd);
142143
GetWindowText(hwnd, nid.szTip, sizeof(nid.szTip) / sizeof(nid.szTip[0]));
143144
Shell_NotifyIcon(NIM_MODIFY, &nid);
144145
}

0 commit comments

Comments
 (0)