From b4830a563f6f499b21860215de6d540a77810c28 Mon Sep 17 00:00:00 2001 From: John Smith Date: Mon, 16 Jan 2017 00:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9XP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CDConfig/CDConfig.vcxproj | 4 ++-- CustomDesktop/CustomDesktop.vcxproj | 8 ++++---- CustomDesktop/TrayMenu.cpp | 5 +---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/CDConfig/CDConfig.vcxproj b/CDConfig/CDConfig.vcxproj index 13f6094..df138ca 100644 --- a/CDConfig/CDConfig.vcxproj +++ b/CDConfig/CDConfig.vcxproj @@ -27,7 +27,7 @@ Application true - v120 + v120_xp Unicode Dynamic @@ -41,7 +41,7 @@ Application false - v120 + v120_xp true Unicode Dynamic diff --git a/CustomDesktop/CustomDesktop.vcxproj b/CustomDesktop/CustomDesktop.vcxproj index 9d469de..2941b26 100644 --- a/CustomDesktop/CustomDesktop.vcxproj +++ b/CustomDesktop/CustomDesktop.vcxproj @@ -97,7 +97,7 @@ Windows true - Comctl32.lib;Psapi.lib;Dbghelp.lib;%(AdditionalDependencies) + Psapi.lib;Dbghelp.lib;%(AdditionalDependencies) @@ -111,7 +111,7 @@ Windows true - Comctl32.lib;Dwmapi.lib;Psapi.lib;Dbghelp.lib;%(AdditionalDependencies) + Dwmapi.lib;Psapi.lib;Dbghelp.lib;%(AdditionalDependencies) @@ -129,7 +129,7 @@ true true true - Comctl32.lib;Psapi.lib;Dbghelp.lib;%(AdditionalDependencies) + Psapi.lib;Dbghelp.lib;%(AdditionalDependencies) @@ -148,7 +148,7 @@ true true true - Comctl32.lib;Dwmapi.lib;Psapi.lib;Dbghelp.lib;%(AdditionalDependencies) + Dwmapi.lib;Psapi.lib;Dbghelp.lib;%(AdditionalDependencies) true diff --git a/CustomDesktop/TrayMenu.cpp b/CustomDesktop/TrayMenu.cpp index f8420a0..1b60e47 100644 --- a/CustomDesktop/TrayMenu.cpp +++ b/CustomDesktop/TrayMenu.cpp @@ -1,6 +1,5 @@ #include "stdafx.h" #include "TrayMenu.h" -#include #include "resource.h" #include "Global.h" #include @@ -19,7 +18,7 @@ namespace cd m_trayData.uID = 100; m_trayData.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP; m_trayData.uCallbackMessage = GetFileListMsgID(); - LoadIconMetric(g_global.m_cdModule, MAKEINTRESOURCE(IDI_TRAY), LIM_SMALL, &m_trayData.hIcon); + m_trayData.hIcon = LoadIcon(g_global.m_cdModule, MAKEINTRESOURCE(IDI_TRAY)); _tcscpy_s(m_trayData.szTip, _T("CustomDesktop")); Init(); @@ -28,8 +27,6 @@ namespace cd TrayMenu::~TrayMenu() { Uninit(); - - DestroyIcon(m_trayData.hIcon); } bool TrayMenu::Init()