From f1e6c9b63fc90e6fbbcfcef52912ad0fda768302 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 11 Aug 2014 15:17:20 +0000 Subject: import: clearance git-svn-id: http://svn.miranda-ng.org/main/trunk@10156 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Import/src/utils.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'plugins/Import/src/utils.cpp') diff --git a/plugins/Import/src/utils.cpp b/plugins/Import/src/utils.cpp index b3e3d7d6ed..8ab913ecf9 100644 --- a/plugins/Import/src/utils.cpp +++ b/plugins/Import/src/utils.cpp @@ -221,3 +221,33 @@ bool IsDuplicateEvent(MCONTACT hContact, DBEVENTINFO dbei) hPreviousContact = INVALID_CONTACT_ID; return FALSE; } + +///////////////////////////////////////////////////////////////////////////////////////// +// icons + +static IconItem iconList[] = { + { LPGEN("Import..."), "import_main", IDI_IMPORT } +}; + +HICON GetIcon(int iIconId) +{ + for (int i = 0; i < SIZEOF(iconList); i++) + if (iconList[i].defIconID == iIconId) + return Skin_GetIconByHandle(iconList[i].hIcolib); + + return NULL; +} + +HANDLE GetIconHandle(int iIconId) +{ + for (int i = 0; i < SIZEOF(iconList); i++) + if (iconList[i].defIconID == iIconId) + return iconList[i].hIcolib; + + return NULL; +} + +void RegisterIcons() +{ + Icon_Register(hInst, "Import", iconList, SIZEOF(iconList)); +} -- cgit v1.2.3