summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/NoHistory/icons.cpp
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 /plugins/!NotAdopted/NoHistory/icons.cpp
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 'plugins/!NotAdopted/NoHistory/icons.cpp')
-rw-r--r--plugins/!NotAdopted/NoHistory/icons.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/!NotAdopted/NoHistory/icons.cpp b/plugins/!NotAdopted/NoHistory/icons.cpp
index 741ad3727e..b8fcddc70b 100644
--- a/plugins/!NotAdopted/NoHistory/icons.cpp
+++ b/plugins/!NotAdopted/NoHistory/icons.cpp
@@ -6,9 +6,9 @@ HICON hIconRemove, hIconKeep, hIconClear;
HANDLE hIcoLibIconsChanged = 0;
int ReloadIcons(WPARAM wParam, LPARAM lParam) {
- hIconRemove = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)MODULE "_remove");
- hIconKeep = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)MODULE "_keep");
- hIconClear = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)MODULE "_clear");
+ hIconRemove = Skin_GetIcon(MODULE "_remove");
+ hIconKeep = Skin_GetIcon(MODULE "_keep");
+ hIconClear = Skin_GetIcon(MODULE "_clear");
return 0;
}
@@ -26,7 +26,7 @@ void InitIcons() {
sid.pszDefaultFile = MODULE ".dll"; \
sid.hDefaultIcon = (HICON)LoadImage(hInst, MAKEINTRESOURCE(z), IMAGE_ICON, 0, 0, 0); \
CallService(MS_SKIN2_ADDICON, 0, (LPARAM)&sid); \
- sid.iDefaultIndex++;
+ sid.iDefaultIndex++;
AddIcon("Disable", MODULE "_remove", IDI_HREMOVE);
AddIcon("Enable", MODULE "_keep", IDI_HKEEP);