summaryrefslogtreecommitdiff
path: root/include/m_clist.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-05 16:53:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-05 16:53:36 +0000
commit6c01981a8452577f3751298c7cdbe59b3ae81d51 (patch)
tree197761c10a3a206f98745e9341dd516c784e99bb /include/m_clist.h
parent297626e55974e9082f0fd76b98050fc291b1e3f3 (diff)
MS_CLIST_SHOWHIDEMENUITEM - new simplified service for the menus items' hiding/showing
git-svn-id: http://svn.miranda-ng.org/main/trunk@4318 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_clist.h')
-rw-r--r--include/m_clist.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/m_clist.h b/include/m_clist.h
index 8890462108..bcf0a3aaa7 100644
--- a/include/m_clist.h
+++ b/include/m_clist.h
@@ -175,7 +175,7 @@ __forceinline HGENMENU Menu_AddProtoMenuItem(CLISTMENUITEM *mi)
}
//modify an existing menu item v0.1.0.1+
-//wParam = (WPARAM)(HANDLE)hMenuItem
+//wParam = (WPARAM)(HGENMENU)hMenuItem
//lParam = (LPARAM)(CLISTMENUITEM*)&clmi
//returns 0 on success, nonzero on failure
//hMenuItem will have been returned by clist/add*menuItem
@@ -188,6 +188,19 @@ __forceinline HGENMENU Menu_AddProtoMenuItem(CLISTMENUITEM *mi)
#define CMIM_ALL 0xF0000000
#define MS_CLIST_MODIFYMENUITEM "CList/ModifyMenuItem"
+__forceinline void Menu_ModifyItem(HGENMENU hMenuItem, CLISTMENUITEM *clmi)
+{ CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuItem, (LPARAM)clmi);
+}
+
+//changes menu item's visibility v0.94.2+
+//wParam = (WPARAM)(HGENMENU)hMenuItem
+//lParam = (BOOL) enable = TRUE, disable = FALSE
+#define MS_CLIST_SHOWHIDEMENUITEM "CList/ShowHideMenuItem"
+
+__forceinline void Menu_ShowItem(HGENMENU hMenuItem, BOOL bShow)
+{ CallService(MS_CLIST_SHOWHIDEMENUITEM, (WPARAM)hMenuItem, bShow);
+}
+
//the context menu for a contact is about to be built v0.1.0.1+
//wParam = (WPARAM)(HANDLE)hContact
//lParam = 0