summaryrefslogtreecommitdiff
path: root/plugins/AutoShutdown
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-07-09 17:56:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-07-09 17:56:47 +0000
commit86eea20c7d00dfc223cf13217cf4dfc57202965e (patch)
tree9782b325c82473f38b6d3a04692005b9931b9b37 /plugins/AutoShutdown
parenta187813a93a1f0be12ec0bb8faa0b956517c55ad (diff)
- various icon definition quirks;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14520 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AutoShutdown')
-rw-r--r--plugins/AutoShutdown/src/utils.cpp17
-rw-r--r--plugins/AutoShutdown/src/utils.h1
2 files changed, 0 insertions, 18 deletions
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();