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
30
31
32
33
34
35
36
|
#include "stdafx.h"
TCHAR g_dllpath[1024];
static IconItem iconList[] = {
{ LPGEN(LANG_ICON_OTR), ICON_OTR, IDI_OTR },
{ LPGEN(LANG_ICON_PRIVATE), ICON_PRIVATE, IDI_PRIVATE },
{ LPGEN(LANG_ICON_UNVERIFIED), ICON_UNVERIFIED, IDI_UNVERIFIED },
{ LPGEN(LANG_ICON_FINISHED), ICON_FINISHED, IDI_FINISHED },
{ LPGEN(LANG_ICON_NOT_PRIVATE), ICON_NOT_PRIVATE, IDI_INSECURE },
{ LPGEN(LANG_ICON_REFRESH), ICON_REFRESH, IDI_REFRESH }
};
void InitIcons()
{
Icon_Register(hInst, "OTR", iconList, SIZEOF(iconList));
}
HICON LoadIcon(const char* name, int big) {
return Skin_GetIcon(name, big);
}
HANDLE GetIconHandle(const char* name)
{
return Skin_GetIconHandle(name);
}
void ReleaseIcon(const char* name, int big)
{
Skin_ReleaseIcon(name, big);
}
void ReleaseIcon(HICON handle, int big)
{
Skin_ReleaseIcon(handle);
}
|