From 86eea20c7d00dfc223cf13217cf4dfc57202965e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 9 Jul 2015 17:56:47 +0000 Subject: - various icon definition quirks; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14520 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AutoShutdown/src/utils.cpp | 17 ----------------- plugins/AutoShutdown/src/utils.h | 1 - 2 files changed, 18 deletions(-) (limited to 'plugins/AutoShutdown') diff --git a/plugins/AutoShutdown/src/utils.cpp b/plugins/AutoShutdown/src/utils.cpp index 7fc7c6720a..d866eadd83 100644 --- a/plugins/AutoShutdown/src/utils.cpp +++ b/plugins/AutoShutdown/src/utils.cpp @@ -204,23 +204,6 @@ BOOL GetFormatedDateTime(TCHAR *pszOut,int nSize,time_t timestamp,BOOL fShowDate /************************* Skin ***********************************/ -HANDLE IcoLib_AddIconRes(const char *pszDbName,const TCHAR *pszSection,const TCHAR *pszDesc,HINSTANCE hInst,WORD idRes,BOOL fLarge) -{ - TCHAR szFileName[MAX_PATH]; - GetModuleFileName(hInst,szFileName,_countof(szFileName)); - - SKINICONDESC sid = { 0 }; - sid.pszName = (char*)pszDbName; - sid.section.t = (TCHAR*)pszSection; - sid.description.t = (TCHAR*)pszDesc; - sid.defaultFile.t = szFileName; - sid.iDefaultIndex = -idRes; - sid.cx = GetSystemMetrics(fLarge?SM_CXICON:SM_CXSMICON); - sid.cy = GetSystemMetrics(fLarge?SM_CYICON:SM_CYSMICON); - sid.flags = SIDF_SORTED | SIDF_ALL_TCHAR; - return IcoLib_AddIcon(&sid); -} - void AddHotkey() { HOTKEYDESC hkd = {0}; diff --git a/plugins/AutoShutdown/src/utils.h b/plugins/AutoShutdown/src/utils.h index 1c87078c92..02edb32dda 100644 --- a/plugins/AutoShutdown/src/utils.h +++ b/plugins/AutoShutdown/src/utils.h @@ -35,5 +35,4 @@ BOOL GetFormatedCountdown(TCHAR *pszOut,int nSize,time_t countdown); BOOL GetFormatedDateTime(TCHAR *pszOut,int nSize,time_t timestamp,BOOL fShowDateEvenToday); /* Skin */ -HANDLE IcoLib_AddIconRes(const char *pszDbName,const TCHAR *pszSection,const TCHAR *pszDesc,HINSTANCE hInst,WORD idRes,BOOL fLarge); void AddHotkey(); -- cgit v1.2.3