diff --git a/wCenterWindow/framework.h b/wCenterWindow/framework.h index cf2cb46..cc2cc26 100644 --- a/wCenterWindow/framework.h +++ b/wCenterWindow/framework.h @@ -6,14 +6,15 @@ #include "targetver.h" #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers + // Windows Header Files #include #include #include #include #include -#include #include +#include #include // C RunTime Header Files diff --git a/wCenterWindow/wCenterWindow.cpp b/wCenterWindow/wCenterWindow.cpp index 69808ee..668d3c5 100644 --- a/wCenterWindow/wCenterWindow.cpp +++ b/wCenterWindow/wCenterWindow.cpp @@ -218,7 +218,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) bWorkArea ? mii.fState = MFS_CHECKED : mii.fState = MFS_UNCHECKED; SetMenuItemInfoW(hPopup, ID_POPUPMENU_AREA, FALSE, &mii); - nid.cbSize = sizeof(NOTIFYICONDATA); + //nid.cbSize = sizeof(NOTIFYICONDATA); + nid.cbSize = NOTIFYICONDATA_V3_SIZE; nid.hWnd = hWnd; nid.uVersion = NOTIFYICON_VERSION; nid.uCallbackMessage = WM_WCW; diff --git a/wCenterWindow/wCenterWindow.vcxproj b/wCenterWindow/wCenterWindow.vcxproj index 0897fe9..732dbfd 100644 --- a/wCenterWindow/wCenterWindow.vcxproj +++ b/wCenterWindow/wCenterWindow.vcxproj @@ -43,13 +43,13 @@ Application true - v141_xp + v143 Unicode Application false - v141_xp + v143 true Unicode @@ -95,7 +95,7 @@ Windows true - comctl32.lib;%(AdditionalDependencies) + comctl32.lib;shell32.lib;%(AdditionalDependencies) $(ProjectName).manifest %(AdditionalManifestFiles) @@ -117,7 +117,7 @@ true true false - comctl32.lib;%(AdditionalDependencies) + comctl32.lib;shell32.lib;%(AdditionalDependencies) $(ProjectName).manifest %(AdditionalManifestFiles) @@ -134,6 +134,7 @@ Windows true + comctl32.lib;shell32.lib;%(AdditionalDependencies) @@ -151,6 +152,7 @@ true true true + comctl32.lib;shell32.lib;%(AdditionalDependencies)