Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Mon Nov 06, 2006 8:32 am Post subject: HOWTO : Add sub-menus/multi-level menus to the item context menu/background menu of your namespace extension |
|
|
To add multi-level menu entries in an item context menu or the background menu of the namespace extension, you should use the HasSubMenu property of ShellMenu. Use the following code in the GetMenuItems method override of your NSEFolder derived class :
ShellMenuItem parent = e.Menu.AddItem("Parent menu item");
parent.HasSubMenu = true;
parent.SubMenu.AddItem("Sub menu item 1");
parent.SubMenu.AddItem("Sub menu item 2"); |
|