From c4582dd65b444e5dae29ada7cc3f6c9a9c20edf3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 2 Dec 2012 18:19:49 +0000 Subject: new easy standard way of registering icons: Icon_Register git-svn-id: http://svn.miranda-ng.org/main/trunk@2601 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_core.h | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/m_core.h b/include/m_core.h index 99fa85bdde..393767602c 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -196,13 +196,41 @@ typedef DWORD (__cdecl *pfnExceptionFilter)(DWORD code, EXCEPTION_POINTERS* info MIR_CORE_DLL(pfnExceptionFilter) GetExceptionFilter(void); MIR_CORE_DLL(pfnExceptionFilter) SetExceptionFilter(pfnExceptionFilter pMirandaExceptFilter); +/////////////////////////////////////////////////////////////////////////////// +// icons support + +extern int hLangpack; + +typedef struct tagIconItem +{ + char *szDescr, *szName; + int defIconID, size; + HANDLE hIcolib; +} + IconItem; + +typedef struct tagIconItemT +{ + TCHAR *tszDescr; + char *szName; + int defIconID, size; + HANDLE hIcolib; +} + IconItemT; + +#if defined( __cplusplus ) +MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char* szSection, IconItem* pIcons, size_t iCount, char *prefix = NULL, int = hLangpack); +MIR_CORE_DLL(void) Icon_RegisterT(HINSTANCE hInst, const TCHAR* szSection, IconItemT* pIcons, size_t iCount, char *prefix = NULL, int = hLangpack); +#else +MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char* szSection, IconItem* pIcons, size_t iCount, char *prefix, int hLangpack); +MIR_CORE_DLL(void) Icon_RegisterT(HINSTANCE hInst, const TCHAR* szSection, IconItemT* pIcons, size_t iCount, char *prefix, int hLangpack); +#endif + /////////////////////////////////////////////////////////////////////////////// // language packs support #define LANG_UNICODE 0x1000 -extern int hLangpack; - MIR_CORE_DLL(void) Langpack_SortDuplicates(void); MIR_CORE_DLL(int) Langpack_GetDefaultCodePage( void ); MIR_CORE_DLL(int) Langpack_GetDefaultLocale(void); -- cgit v1.2.3