summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-02 14:11:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-02 14:11:01 +0000
commit75b1ff75c42644eb36552762652e4b0c9ff071bc (patch)
tree238f026ef373d30a395846f38c302a81961b14ac /include
parent2caba72d51b09368801f23dd8951d589ab4dc809 (diff)
final switch to the typed icolib api
git-svn-id: http://svn.miranda-ng.org/main/trunk@2152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r--include/m_icolib.h7
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
//