#include "stdafx.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, LPARAM) { hIconRemove = IcoLib_GetIconByHandle(iconList[0].hIcolib); hIconKeep = IcoLib_GetIconByHandle(iconList[1].hIcolib); hIconClear = IcoLib_GetIconByHandle(iconList[2].hIcolib); return 0; } void InitIcons() { Icon_Register(hInst, LPGEN("No History"), iconList, _countof(iconList), MODULE); ReloadIcons(0, 0); HookEvent(ME_SKIN2_ICONSCHANGED, ReloadIcons); }