From 02ed4455c23e3562d71bfc80a0e2c4fede8708f1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 14 Jun 2015 13:17:26 +0000 Subject: - all icolib services removed; - IcoLib_* functions are bound directly to the code git-svn-id: http://svn.miranda-ng.org/main/trunk@14161 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MenuItemEx/src/images.cpp | 2 +- plugins/MenuItemEx/src/main.cpp | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'plugins/MenuItemEx') diff --git a/plugins/MenuItemEx/src/images.cpp b/plugins/MenuItemEx/src/images.cpp index e0c5d0ede6..451e694903 100644 --- a/plugins/MenuItemEx/src/images.cpp +++ b/plugins/MenuItemEx/src/images.cpp @@ -322,7 +322,7 @@ HICON BindOverlayIcon(HICON SourceIcon, LPCSTR OverlayIconName) CorrectBitmap32Alpha(TargetIconInfo.hbmColor, FALSE); GetObject(TargetIconInfo.hbmColor, sizeof(BITMAP), &TargetBitmapInfo); - OverlayIcon = Skin_GetIcon(OverlayIconName); + OverlayIcon = IcoLib_GetIcon(OverlayIconName); if (!GetIconInfo(OverlayIcon, &OverlayIconInfo) || !GetObject(OverlayIconInfo.hbmColor, sizeof(BITMAP), &OverlayBitmapInfo)) return NULL; diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 3a97fb52fb..2f86c70366 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -790,7 +790,7 @@ int BuildMenu(WPARAM wparam, LPARAM) BYTE bHidden = db_get_b(hContact, "CList", "Hidden", 0); CLISTMENUITEM mi = { sizeof(mi) }; mi.flags |= CMIM_ICON | CMIM_NAME | CMIF_UNICODE; - mi.hIcon = Skin_GetIcon(bHidden ? "miex_showil" : "miex_hidefl"); + mi.hIcon = IcoLib_GetIcon(bHidden ? "miex_showil" : "miex_hidefl"); mi.ptszName = bHidden ? LPGENT("Show in list") : LPGENT("Hide from list"); Menu_ModifyItem(hmenuHide, &mi); } @@ -916,7 +916,7 @@ static int TabsrmmButtonsInit(WPARAM, LPARAM) bbd.dwDefPos = 1000; bbd.ptszTooltip = LPGENT("Browse Received Files"); bbd.bbbFlags = BBBF_ISLSIDEBUTTON | BBBF_CANBEHIDDEN; - bbd.hIcon = Skin_GetIconHandle("miex_recfiles"); + bbd.hIcon = IcoLib_GetIconHandle("miex_recfiles"); CallService(MS_BB_ADDBUTTON, 0, (LPARAM)&bbd); return 0; @@ -996,7 +996,7 @@ static int PluginInit(WPARAM, LPARAM) mi.ptszName = LPGENT("Ignore"); mi.pszService = 0; mi.flags |= CMIF_ROOTHANDLE; - mi.hIcon = Skin_GetIcon("miex_ignore"); + mi.hIcon = IcoLib_GetIcon("miex_ignore"); hmenuIgnore = Menu_AddContactMenuItem(&mi); hIgnoreItem[0] = AddSubmenuItem(hmenuIgnore, ii[0].name, LoadSkinnedIcon(ii[0].icon), 0, MS_IGNORE, pos, ii[0].type); @@ -1008,13 +1008,13 @@ static int PluginInit(WPARAM, LPARAM) ood.cbSize = sizeof(ood); ood.pszGroup = "Contacts"; ood.pszPage = "Ignore"; - AddSubmenuItem(hmenuIgnore, LPGENT("Open ignore settings"), Skin_GetIcon("miex_ignore"), 0, "Opt/OpenOptions", pos, (int)&ood); + AddSubmenuItem(hmenuIgnore, LPGENT("Open ignore settings"), IcoLib_GetIcon("miex_ignore"), 0, "Opt/OpenOptions", pos, (int)&ood); mi.pszPopupName = 0; mi.position++; mi.ptszName = LPGENT("Copy to Account"); mi.pszService = MS_PROTO; - mi.hIcon = Skin_GetIcon("miex_protocol"); + mi.hIcon = IcoLib_GetIcon("miex_protocol"); hmenuProto = Menu_AddContactMenuItem(&mi); EnumProtoSubmenu(0, 0); @@ -1041,7 +1041,7 @@ static int PluginInit(WPARAM, LPARAM) mi.position++; mi.ptszName = LPGENT("Browse Received Files"); mi.pszService = MS_RECVFILES; - mi.hIcon = Skin_GetIcon("miex_recfiles"); + mi.hIcon = IcoLib_GetIcon("miex_recfiles"); hmenuRecvFiles = Menu_AddContactMenuItem(&mi); mi.position++; @@ -1060,9 +1060,9 @@ static int PluginInit(WPARAM, LPARAM) mi.pszService = MS_COPYMIRVER; hmenuCopyMirVer = Menu_AddContactMenuItem(&mi); - hIcon[0] = Skin_GetIcon("miex_copymver"); - hIcon[1] = Skin_GetIcon("miex_vis"); - hIcon[2] = Skin_GetIcon("miex_invis"); + hIcon[0] = IcoLib_GetIcon("miex_copymver"); + hIcon[1] = IcoLib_GetIcon("miex_vis"); + hIcon[2] = IcoLib_GetIcon("miex_invis"); hIcon[3] = MakeHalfAlphaIcon(hIcon[1]); hIcon[4] = MakeHalfAlphaIcon(hIcon[2]); -- cgit v1.2.3