From 0a62eb9bdccf5c6b1e83b7f025859e4ca005f4f2 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 18 May 2012 21:47:51 +0000 Subject: goodbye updater git-svn-id: http://svn.miranda-ng.org/main/trunk@58 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/updater/icons.cpp | 56 ----------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 plugins/updater/icons.cpp (limited to 'plugins/updater/icons.cpp') diff --git a/plugins/updater/icons.cpp b/plugins/updater/icons.cpp deleted file mode 100644 index 1123294676..0000000000 --- a/plugins/updater/icons.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include "common.h" -#include "icons.h" - -typedef struct -{ - char* szDescr; - char* szName; - int defIconID; -} IconStruct; - -static const IconStruct iconList[] = -{ - { "Check for Plugin Updates", "updater_check", IDI_MAINMENU }, - { "Restart", "updater_restart", IDI_RESTART }, - { "Update and Exit", "updater_checkexit", IDI_UPDATEANDEXIT }, -}; - -HANDLE hIcolibIcon[SIZEOF(iconList)]; - - -HICON LoadIconEx(IconIndex i, bool big) -{ - return (HICON)CallService(MS_SKIN2_GETICONBYHANDLE, big, (LPARAM)hIcolibIcon[(int)i]); -} - -HANDLE GetIconHandle(IconIndex i) -{ - return hIcolibIcon[(int)i]; -} - -void ReleaseIconEx(HICON hIcon) -{ - CallService(MS_SKIN2_RELEASEICON, (WPARAM)hIcon, 0); -} - - -void InitIcons(void) -{ - SKINICONDESC sid = {0}; - TCHAR path[MAX_PATH]; - int i; - - sid.cbSize = sizeof(SKINICONDESC); - sid.pszSection = MODULE; - sid.flags = SIDF_PATH_TCHAR; - sid.ptszDefaultFile = path; - GetModuleFileName(hInst, path, sizeof(path)); - - for (i = 0; i < SIZEOF(iconList); ++i) - { - sid.pszDescription = iconList[i].szDescr; - sid.pszName = iconList[i].szName; - sid.iDefaultIndex = -iconList[i].defIconID; - hIcolibIcon[i] = (HANDLE)CallService(MS_SKIN2_ADDICON, 0, (LPARAM)&sid); - } -} -- cgit v1.2.3