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/Alarms/src/icons.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/Alarms/src/icons.cpp') diff --git a/plugins/Alarms/src/icons.cpp b/plugins/Alarms/src/icons.cpp index 5a07541e27..d1f1fc7e93 100644 --- a/plugins/Alarms/src/icons.cpp +++ b/plugins/Alarms/src/icons.cpp @@ -7,11 +7,11 @@ HICON hIconMenuSet, hIconList1, hIconList2, hIconMenuShowHide, hIconSystray; int ReloadIcons(WPARAM wParam, LPARAM lParam) { - hIconMenuSet = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"alarms_menu_set"); - hIconList1 = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"alarms_list1"); - hIconList2 = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"alarms_list2"); + hIconMenuSet = Skin_GetIcon("alarms_menu_set"); + hIconList1 = Skin_GetIcon("alarms_list1"); + hIconList2 = Skin_GetIcon("alarms_list2"); if (!ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) - hIconMenuShowHide = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"alarms_menu_showhide"); + hIconMenuShowHide = Skin_GetIcon("alarms_menu_showhide"); RefreshReminderFrame(); return 0; @@ -59,13 +59,13 @@ void InitIcons() sid.hDefaultIcon = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_MAINMENU), IMAGE_ICON, 16, 16, 0); Skin_AddIcon(&sid); - hIconMenuShowHide = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"alarms_menu_showhide"); + hIconMenuShowHide = Skin_GetIcon("alarms_menu_showhide"); } - hIconMenuSet = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"alarms_menu_set"); - hIconList1 = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"alarms_list1"); - hIconList2 = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"alarms_list2"); - hIconSystray = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"alarms_systray"); + hIconMenuSet = Skin_GetIcon("alarms_menu_set"); + hIconList1 = Skin_GetIcon("alarms_list1"); + hIconList2 = Skin_GetIcon("alarms_list2"); + hIconSystray = Skin_GetIcon("alarms_systray"); hIcoLibIconsChanged = HookEvent(ME_SKIN2_ICONSCHANGED, ReloadIcons); } -- cgit v1.2.3