From 874bfd75183b781c0087087502133f5bea8ade1c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 Mar 2019 00:01:57 +0300 Subject: Menu_ModifyItem to receive icolib handle, not HICON --- plugins/MenuItemEx/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/MenuItemEx/src') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 0c355b9e1a..48d89f3b61 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -386,12 +386,12 @@ static INT_PTR onHide(WPARAM wparam, LPARAM) // following 4 functions should be self-explanatory static void ModifyVisibleSet(int mode, BOOL alpha) { - Menu_ModifyItem(hmenuVis, nullptr, (mode) ? hIcons[1] : (alpha ? hIcons[3] : Skin_LoadIcon(SKINICON_OTHER_SMALLDOT))); + Menu_ModifyItem(hmenuVis, nullptr, (mode) ? hIcons[1] : (alpha ? hIcons[3] : Skin_GetIconHandle(SKINICON_OTHER_SMALLDOT))); } static void ModifyInvisSet(int mode, BOOL alpha) { - Menu_ModifyItem(hmenuOff, nullptr, (mode) ? hIcons[2] : (alpha ? hIcons[4] : Skin_LoadIcon(SKINICON_OTHER_SMALLDOT))); + Menu_ModifyItem(hmenuOff, nullptr, (mode) ? hIcons[2] : (alpha ? hIcons[4] : Skin_GetIconHandle(SKINICON_OTHER_SMALLDOT))); } static void ModifyCopyID(MCONTACT hContact, BOOL bShowID, BOOL bTrimID) @@ -697,9 +697,9 @@ static int BuildMenu(WPARAM wparam, LPARAM) if (bEnabled) { BYTE bHidden = db_get_b(hContact, "CList", "Hidden", 0); if (bHidden) - Menu_ModifyItem(hmenuHide, LPGENW("Show in list"), IcoLib_GetIcon("miex_showil")); + Menu_ModifyItem(hmenuHide, LPGENW("Show in list"), IcoLib_GetIconHandle("miex_showil")); else - Menu_ModifyItem(hmenuHide, LPGENW("Hide from list"), IcoLib_GetIcon("miex_hidefl")); + Menu_ModifyItem(hmenuHide, LPGENW("Hide from list"), IcoLib_GetIconHandle("miex_hidefl")); } bEnabled = bShowAll || (flags & VF_IGN); -- cgit v1.2.3