diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-11 15:17:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-11 15:17:20 +0000 |
commit | f1e6c9b63fc90e6fbbcfcef52912ad0fda768302 (patch) | |
tree | 0760375443d3e186253ed2367d54817fc6d91ea4 /plugins/Import/src/utils.cpp | |
parent | e54f5144d2be315ee14ea7ae42a2a38f53e1162a (diff) |
import: clearance
git-svn-id: http://svn.miranda-ng.org/main/trunk@10156 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Import/src/utils.cpp')
-rw-r--r-- | plugins/Import/src/utils.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
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));
+}
|