From e3cefc7b6ca803e3f87dbadae54a110332778490 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 5 Jul 2012 22:41:06 +0000 Subject: - first of the /Core standard plugins; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@778 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdplug.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/core/stdplug.h (limited to 'src/core/stdplug.h') diff --git a/src/core/stdplug.h b/src/core/stdplug.h new file mode 100644 index 0000000000..269eeeba3d --- /dev/null +++ b/src/core/stdplug.h @@ -0,0 +1,23 @@ + +#ifdef _STATIC + #define MIRANDA_EXE_FUNC(T) extern "C" T __declspec(dllexport) +#else + #define MIRANDA_EXE_FUNC(T) extern "C" T __declspec(dllimport) +#endif + +MIRANDA_EXE_FUNC(HICON) LoadSkinProtoIcon(const char* szProto, int status, bool big = false); +MIRANDA_EXE_FUNC(HICON) LoadSkinIcon(int idx, bool big = false); +MIRANDA_EXE_FUNC(HANDLE) GetSkinIconHandle(int idx); + +MIRANDA_EXE_FUNC(HANDLE) IcoLib_AddNewIcon(int hLangpack, SKINICONDESC* sid); +MIRANDA_EXE_FUNC(HICON) IcoLib_GetIcon(const char* pszIconName, bool big); +MIRANDA_EXE_FUNC(HICON) IcoLib_GetIconByHandle(HANDLE hItem, bool big); +MIRANDA_EXE_FUNC(HANDLE) IcoLib_IsManaged(HICON hIcon); +MIRANDA_EXE_FUNC(int) IcoLib_ReleaseIcon(HICON hIcon, char* szIconName, bool big=false); + +MIRANDA_EXE_FUNC(void) Button_SetIcon_IcoLib(HWND hDlg, int itemId, int iconId, const char* tooltip); +MIRANDA_EXE_FUNC(void) Button_FreeIcon_IcoLib(HWND hDlg, int itemId); + +MIRANDA_EXE_FUNC(void) Window_SetIcon_IcoLib(HWND hWnd, int iconId); +MIRANDA_EXE_FUNC(void) Window_SetProtoIcon_IcoLib(HWND hWnd, const char* szProto, int iconId); +MIRANDA_EXE_FUNC(void) Window_FreeIcon_IcoLib(HWND hWnd); -- cgit v1.2.3