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/AvatarHistory/src/icolib.cpp | |
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/AvatarHistory/src/icolib.cpp')
-rw-r--r-- | plugins/AvatarHistory/src/icolib.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/AvatarHistory/src/icolib.cpp b/plugins/AvatarHistory/src/icolib.cpp index a4105eef3c..76bc96d80c 100644 --- a/plugins/AvatarHistory/src/icolib.cpp +++ b/plugins/AvatarHistory/src/icolib.cpp @@ -27,9 +27,9 @@ static HICON LoadIconEx(IconIndex i) HICON hIcon;
if (hHooks[4])
- hIcon = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)iconList[(int)i].szName);
+ hIcon = Skin_GetIcon(iconList[(int)i].szName);
else
- hIcon = (HICON)LoadImage(hInst, MAKEINTRESOURCE(iconList[(int)i].defIconID),
+ hIcon = (HICON)LoadImage(hInst, MAKEINTRESOURCE(iconList[(int)i].defIconID),
IMAGE_ICON, 0, 0, 0);
return hIcon;
@@ -39,7 +39,7 @@ static HICON LoadIconEx(IconIndex i) static void ReleaseIconEx(HICON hIcon)
{
if (hHooks[4])
- CallService(MS_SKIN2_RELEASEICON, (WPARAM)hIcon, 0);
+ Skin_ReleaseIcon(hIcon);
else
DestroyIcon(hIcon);
}
@@ -75,7 +75,7 @@ void SetupIcoLib() sid.ptszDefaultFile = path;
sid.flags = SIDF_ALL_TCHAR;
- for (unsigned i = 0; i < MAX_REGS(iconList); i++)
+ for (unsigned i = 0; i < MAX_REGS(iconList); i++)
{
if (!iconList[i].core)
{
@@ -129,7 +129,6 @@ HICON createProtoOverlayedIcon(HANDLE hContact) HICON resIcon = getOverlayedIcon(icon0, icon1, FALSE);
ReleaseIconEx(icon1);
- CallService(MS_SKIN2_RELEASEICON, (WPARAM)icon0, 0);
-
+ Skin_ReleaseIcon(icon0);
return resIcon;
}
|