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
|
#include "common.h"
static IconItem iconList[] =
{
// toolbar
{ LPGEN("Popups are enabled"), ICO_TB_POPUP_ON, IDI_POPUP },
{ LPGEN("Popups are disabled"), ICO_TB_POPUP_OFF, IDI_NOPOPUP },
// common
{ LPGEN("Popups are enabled"), ICO_POPUP_ON, IDI_POPUP },
{ LPGEN("Popups are disabled"), ICO_POPUP_OFF, IDI_NOPOPUP },
{ LPGEN("Popup History"), ICO_HISTORY, IDI_HISTORY },
};
/**
* Returns a icon, identified by a name
* @param pszIcon - name of the icon
* @param big - bool big icon (default = false)
* @return: HICON if the icon is loaded, NULL otherwise
**/
HICON IcoLib_GetIcon(LPCSTR pszIcon, bool big)
{
return (pszIcon) ? Skin_GetIcon(pszIcon, big) : NULL;
}
void InitIcons()
{
Icon_Register(hInst, SECT_TOLBAR, iconList, 2);
Icon_Register(hInst, SECT_POPUP, iconList+2, 3);
}
|