diff --git a/src/traymond.cpp b/src/traymond.cpp index 17c9e82..dbc4a23 100644 --- a/src/traymond.cpp +++ b/src/traymond.cpp @@ -128,7 +128,7 @@ void minimizeToTray(TRCONTEXT *context, long restoreWindow) { nid.hIcon = (HICON)icon; nid.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP | NIF_SHOWTIP; nid.uVersion = NOTIFYICON_VERSION_4; - nid.uID = reinterpret_cast(currWin); + nid.uID = LOWORD(reinterpret_cast(currWin)); nid.uCallbackMessage = WM_ICON; GetWindowText(currWin, nid.szTip, 128); for (int i = 0; i < context->iconIndex; i++) { diff --git a/traymond.vcxproj b/traymond.vcxproj index 30c18c0..4de4af2 100644 --- a/traymond.vcxproj +++ b/traymond.vcxproj @@ -14,17 +14,18 @@ 15.0 {7FDF991D-57D7-48AE-BDAC-8DD9BE849241} Win32Proj + 10.0 Application true - v141 + v142 Application false - v141 + v142