diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-02 14:11:01 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-02 14:11:01 +0000 |
commit | 75b1ff75c42644eb36552762652e4b0c9ff071bc (patch) | |
tree | 238f026ef373d30a395846f38c302a81961b14ac /plugins/Utils | |
parent | 2caba72d51b09368801f23dd8951d589ab4dc809 (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 'plugins/Utils')
-rw-r--r-- | plugins/Utils/mir_icons.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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)
|