From 75b1ff75c42644eb36552762652e4b0c9ff071bc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Nov 2012 14:11:01 +0000 Subject: final switch to the typed icolib api git-svn-id: http://svn.miranda-ng.org/main/trunk@2152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_icolib.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/m_icolib.h') 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 // -- cgit v1.2.3