diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-10 14:46:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-10 14:46:58 +0000 |
commit | 101ca36412b3e7b8851b6b48a4f6cbc17d9f9eff (patch) | |
tree | a846c60f7c2a7df17b694deba92e7f6df3bbb882 /include | |
parent | a3fdadd09f12f6b246b11a5156bf6f0358e9a5f8 (diff) |
bitmap operations were removed from TopToolBar and replaced with IcoLib
git-svn-id: http://svn.miranda-ng.org/main/trunk@379 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/m_icolib.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/m_icolib.h b/include/m_icolib.h index 1f868d13a8..a5e97db2e9 100644 --- a/include/m_icolib.h +++ b/include/m_icolib.h @@ -80,6 +80,10 @@ typedef struct { //
#define MS_SKIN2_ADDICON "Skin2/Icons/AddIcon"
+__inline static HANDLE Skin_AddIcon(SKINICONDESC* si)
+{ return (HANDLE)CallService(MS_SKIN2_ADDICON, 0, (LPARAM)si);
+}
+
//
// Remove a icon from options UI
//
@@ -89,6 +93,10 @@ typedef struct { //
#define MS_SKIN2_REMOVEICON "Skin2/Icons/RemoveIcon"
+__inline static void Skin_RemoveIcon(const char* szIconName)
+{ CallService(MS_SKIN2_REMOVEICON, 0, (LPARAM)szIconName);
+}
+
//
// Retrieve HICON with name specified in lParam
// wParam = (WPARAM)0 - small 1 - big
@@ -97,6 +105,14 @@ typedef struct { //
#define MS_SKIN2_GETICON "Skin2/Icons/GetIcon"
+#ifdef __cplusplus
+__inline static HICON Skin_GetIcon(const char* szIconName, int size=0)
+#else
+__inline static HICON Skin_GetIcon(const char* szIconName, int size)
+#endif
+{ return (HICON)CallService(MS_SKIN2_GETICON, size, (LPARAM)szIconName);
+}
+
//
// Retrieve an icolib handle for icon by name specified in lParam
// wParam = (WPARAM)0
@@ -104,6 +120,10 @@ typedef struct { //
#define MS_SKIN2_GETICONHANDLE "Skin2/Icons/GetIconHandle"
+__inline static HANDLE Skin_GetIconHandle(const char* szIconName)
+{ return (HANDLE)CallService(MS_SKIN2_GETICONHANDLE, 0, (LPARAM)szIconName);
+}
+
//
// Retrieve HICON with HANDLE specified in lParam
// wParam = (WPARAM)0 - small 1 - big
@@ -112,6 +132,14 @@ typedef struct { //
#define MS_SKIN2_GETICONBYHANDLE "Skin2/Icons/GetIconByHandle"
+#ifdef __cplusplus
+__inline static HICON Skin_GetIconByHandle(HANDLE hIcolibIcon, int size=0)
+#else
+__inline static HICON Skin_GetIconByHandle(HANDLE hIcolibIcon, int size)
+#endif
+{ return (HICON)CallService(MS_SKIN2_GETICONBYHANDLE, size, (LPARAM)hIcolibIcon);
+}
+
//
// Add reference to HICON
//
@@ -127,6 +155,19 @@ typedef struct { // lParam = (LPARAM)(char*)pszName (optional) // at least one needs to be specified
//
#define MS_SKIN2_RELEASEICON "Skin2/Icons/ReleaseIcon"
+
+__inline static void Skin_ReleaseIcon(const char* szIconName)
+{ CallService(MS_SKIN2_RELEASEICON, 0, (LPARAM)szIconName);
+}
+
+#ifdef __cplusplus
+__inline static void Skin_ReleaseIcon(HICON hIcon)
+#else
+__inline static void Skin_ReleaseIcon2(HICON hIcon)
+#endif
+{ CallService(MS_SKIN2_RELEASEICON, (WPARAM)hIcon, 0);
+}
+
#define MS_SKIN2_RELEASEICONBIG "Skin2/Icons/ReleaseIconBig"
//
|