summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clui.cpp
diff options
context:
space:
mode:
authorslotwin <slotwin@users.noreply.github.com>2014-06-08 17:30:50 +0000
committerslotwin <slotwin@users.noreply.github.com>2014-06-08 17:30:50 +0000
commitba52e0ca7c8cc2903536fa8fa6b0150bb4069d1f (patch)
tree2749b61a8a87d4ee567a906e8fd9c58d2bc25744 /plugins/Clist_modern/src/modern_clui.cpp
parent2f7760a079e0f1fd713ed46c58239e47b8f7f65a (diff)
Clist_modern: add icons to menu items
add icons to IcoLib remove unused code proper capitalization git-svn-id: http://svn.miranda-ng.org/main/trunk@9425 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clui.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clui.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_clui.cpp b/plugins/Clist_modern/src/modern_clui.cpp
index 1c4013ad40..4c9d90e046 100644
--- a/plugins/Clist_modern/src/modern_clui.cpp
+++ b/plugins/Clist_modern/src/modern_clui.cpp
@@ -327,12 +327,19 @@ HRESULT CLUI::LoadDllsRuntime()
return S_OK;
}
+static IconItemT iconItem[] = {
+ { LPGENT("Show avatar"), "ShowAvatar", IDI_SHOW_AVATAR },
+ { LPGENT("Hide avatar"), "HideAvatar", IDI_HIDE_AVATAR }
+};
+
HRESULT CLUI::RegisterAvatarMenu()
{
+ Icon_RegisterT(g_hInst, LPGENT("Contact list"), iconItem, SIZEOF(iconItem));
+
CLISTMENUITEM mi = { sizeof(mi) };
CreateServiceFunction("CList/ShowContactAvatar", CLUI::Service_Menu_ShowContactAvatar);
mi.position = 2000150000;
- mi.hIcon = LoadSmallIcon(g_hInst, IDI_SHOW_AVATAR);
+ mi.icolibItem = iconItem[0].hIcolib;
mi.pszName = LPGEN("Show contact &avatar");
mi.pszService = "CList/ShowContactAvatar";
hShowAvatarMenuItem = Menu_AddContactMenuItem(&mi);
@@ -340,7 +347,7 @@ HRESULT CLUI::RegisterAvatarMenu()
CreateServiceFunction("CList/HideContactAvatar", CLUI::Service_Menu_HideContactAvatar);
mi.position = 2000150001;
- mi.hIcon = LoadSmallIcon(g_hInst, IDI_HIDE_AVATAR);
+ mi.icolibItem = iconItem[1].hIcolib;
mi.pszName = LPGEN("Hide contact &avatar");
mi.pszService = "CList/HideContactAvatar";
hHideAvatarMenuItem = Menu_AddContactMenuItem(&mi);