summaryrefslogtreecommitdiff
path: root/plugins/NoHistory/src/icons.cpp
blob: 0a523c235d95cc43462c84f09c85a14c3c9c023f (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
#include "common.h"

HICON hIconRemove, hIconKeep, hIconClear;

static IconItem iconList[] = 
{
	{ LPGEN("Disable"), "remove", IDI_HREMOVE },
	{ LPGEN("Enable"),  "keep",   IDI_HKEEP   },
	{ LPGEN("Clear"),   "clear",  IDI_HCLEAR  },
};

int ReloadIcons(WPARAM wParam, LPARAM lParam)
{
	hIconRemove	= Skin_GetIconByHandle(iconList[0].hIcolib);
	hIconKeep	= Skin_GetIconByHandle(iconList[1].hIcolib);
	hIconClear	= Skin_GetIconByHandle(iconList[2].hIcolib);
	return 0;
}

void InitIcons()
{
	Icon_Register(hInst, LPGEN("No History"), iconList, SIZEOF(iconList), MODULE);

	ReloadIcons(0, 0);

	HookEvent(ME_SKIN2_ICONSCHANGED, ReloadIcons);
}