diff options
Diffstat (limited to 'include/m_icolib.h')
-rw-r--r-- | include/m_icolib.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/m_icolib.h b/include/m_icolib.h index 5137f39edf..1412c98f13 100644 --- a/include/m_icolib.h +++ b/include/m_icolib.h @@ -150,12 +150,17 @@ __forceinline HICON Skin_GetIconByHandle(HANDLE hIcolibIcon, int size) // lParam = (LPARAM)(char*)pszName (optional) // at least one needs to be specified
//
#define MS_SKIN2_RELEASEICON "Skin2/Icons/ReleaseIcon"
+#define MS_SKIN2_RELEASEICONBIG "Skin2/Icons/ReleaseIconBig"
__forceinline void Skin_ReleaseIcon(const char* szIconName)
{ CallService(MS_SKIN2_RELEASEICON, 0, (LPARAM)szIconName);
}
#ifdef __cplusplus
+__forceinline void Skin_ReleaseIcon(const char* szIconName, int big)
+{ CallService((big) ? MS_SKIN2_RELEASEICONBIG : MS_SKIN2_RELEASEICON, 0, (LPARAM)szIconName);
+}
+
__forceinline void Skin_ReleaseIcon(HICON hIcon)
#else
__forceinline void Skin_ReleaseIcon2(HICON hIcon)
@@ -163,8 +168,6 @@ __forceinline void Skin_ReleaseIcon2(HICON hIcon) { CallService(MS_SKIN2_RELEASEICON, (WPARAM)hIcon, 0);
}
-#define MS_SKIN2_RELEASEICONBIG "Skin2/Icons/ReleaseIconBig"
-
//
// Check whether HICON is managed by IcoLib
//
|