summaryrefslogtreecommitdiff
path: root/plugins/MetaContacts/src/icons.cpp
blob: 508fe504257d3797a784f60f5e2e2e747b0d80b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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");
}