summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-12-02 18:19:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-12-02 18:19:49 +0000
commitc4582dd65b444e5dae29ada7cc3f6c9a9c20edf3 (patch)
tree17a8627550b202d62df8e1df76d2585d3d0cdeaa /include
parent5ea5feb7e052ca45af7bc9ed76e4a252bd71950d (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/m_core.h32
1 files changed, 30 insertions, 2 deletions
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
@@ -197,12 +197,40 @@ 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);