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 --- plugins/Utils/mir_icons.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Utils') diff --git a/plugins/Utils/mir_icons.cpp b/plugins/Utils/mir_icons.cpp index 00adda0614..9af9f2a3d2 100644 --- a/plugins/Utils/mir_icons.cpp +++ b/plugins/Utils/mir_icons.cpp @@ -32,22 +32,22 @@ HICON IcoLib_LoadIcon(const char *iconName, BOOL copy) if (iconName == NULL || iconName[0] == 0) return NULL; - HICON hIcon = (HICON) CallService(MS_SKIN2_GETICON, 0, (LPARAM) iconName); + HICON hIcon = Skin_GetIcon(iconName); if (copy && hIcon != NULL) { hIcon = CopyIcon(hIcon); - CallService(MS_SKIN2_RELEASEICON, (WPARAM) hIcon, 0); + Skin_ReleaseIcon(hIcon); } return hIcon; } void IcoLib_ReleaseIcon(const char *iconName) { - CallService(MS_SKIN2_RELEASEICON, 0, (LPARAM) iconName); + Skin_ReleaseIcon(iconName); } void IcoLib_ReleaseIcon(HICON hIcon) { - CallService(MS_SKIN2_RELEASEICON, (WPARAM) hIcon, 0); + Skin_ReleaseIcon(hIcon); } HANDLE IcoLib_Register(char *name, char *section, char *description, int id) -- cgit v1.2.3