diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-26 19:18:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-26 19:18:09 +0000 |
commit | c89c550677f40d8b2010de442053cba81ba06d96 (patch) | |
tree | 7a8e85a24385125bc9045b164b5e921fb4e80a45 /include/m_genmenu.h | |
parent | b52ba14782bc2e5fc3eb7452dcebe67bfed095f1 (diff) |
Menu_CreateRoot - new helper for creating submenus
git-svn-id: http://svn.miranda-ng.org/main/trunk@14403 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_genmenu.h')
-rw-r--r-- | include/m_genmenu.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/m_genmenu.h b/include/m_genmenu.h index 1d97fa6dcf..3aa06a6544 100644 --- a/include/m_genmenu.h +++ b/include/m_genmenu.h @@ -70,11 +70,17 @@ EXTERN_C MIR_APP_DLL(BOOL) Menu_ProcessCommandById(int command, LPARAM lParam); /////////////////////////////////////////////////////////////////////////////////////////
// Adds a menu item to genmenu
-// Returns MenuItemHandle on success, or NULL on failure
+// Returns HGENMENU on success, or NULL on failure
EXTERN_C MIR_APP_DLL(HGENMENU) Menu_AddItem(HANDLE hMenuObject, TMO_MenuItem *pItem);
/////////////////////////////////////////////////////////////////////////////////////////
+// Adds new submenu
+// Returns HGENMENU on success, or NULL on failure
+
+EXTERN_C MIR_APP_DLL(HGENMENU) Menu_CreateRoot(HGENMENU hRoot, LPCTSTR ptszName, int position, HANDLE hIcoLib = NULL, int hLang = hLangpack);
+
+/////////////////////////////////////////////////////////////////////////////////////////
// process a WM_DRAWITEM message for user context menus v0.1.1.0+
// wParam, lParam, return value as for WM_MEASUREITEM
// See comments for clist/menumeasureitem
|