summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_icons.cpp
blob: 881c41e7dbc678c26c6680df2c2c33281eb54eb1 (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
27
28
29
#include "stdafx.h"

static IconItem iconList[] =
{
	{ LPGEN("Protocol icon"), "main", IDI_DROPBOX }
};

void InitializeIcons()
{
	Icon_Register(g_hInstance, "Protocols/" MODULE, iconList, SIZEOF(iconList), MODULE);
}

HANDLE GetIconHandle(int iconId)
{
	for (unsigned i = 0; i < SIZEOF(iconList); i++)
		if (iconList[i].defIconID == iconId)
			return iconList[i].hIcolib;

	return NULL;
}

HICON LoadIconEx(int iconId, bool big)
{
	for (int i = 0; i < SIZEOF(iconList); i++)
		if (iconList[i].defIconID == iconId)
			return Skin_GetIconByHandle(iconList[i].hIcolib, big);

	return NULL;
}