summaryrefslogtreecommitdiff
path: root/plugins/!Deprecated/MetaContacts/src/icons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/!Deprecated/MetaContacts/src/icons.cpp')
-rw-r--r--plugins/!Deprecated/MetaContacts/src/icons.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/!Deprecated/MetaContacts/src/icons.cpp b/plugins/!Deprecated/MetaContacts/src/icons.cpp
new file mode 100644
index 0000000000..508fe50425
--- /dev/null
+++ b/plugins/!Deprecated/MetaContacts/src/icons.cpp
@@ -0,0 +1,26 @@
+#include "metacontacts.h"
+
+static IconItem iconList[] = {
+ { LPGEN("Toggle Off"), "off", IDI_MCMENUOFF },
+ { LPGEN("Toggle On"), "on", IDI_MCMENU },
+ { LPGEN("Convert to MetaContact"), "convert", IDI_MCCONVERT },
+ { LPGEN("Add to Existing"), "add", IDI_MCADD },
+ { LPGEN("Edit"), "edit", IDI_MCEDIT },
+ { LPGEN("Set to Default"), "default", IDI_MCSETDEFAULT },
+ { LPGEN("Remove"), "remove", IDI_MCREMOVE },
+};
+
+HANDLE GetIconHandle(IconIndex i)
+{
+ return iconList[i].hIcolib;
+}
+
+HICON LoadIconEx(IconIndex i)
+{
+ return Skin_GetIcon(iconList[i].szName);
+}
+
+void InitIcons(void)
+{
+ Icon_Register(hInstance, META_PROTO, iconList, SIZEOF(iconList), "mc");
+}