Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO : Add sub-menus/multi-level menus to the item context menu/background menu of your namespace extension

 
Subscribe to the RSS feed for this forum  Forum Index -> EZNamespaceExtensionsMFC
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Fri Dec 07, 2007 4:18 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 SetHasSubMenu method of CShellMenuItem. Use the following code in the GetMenuItems method override of your CNSEFolder derived class :

CShellMenuItem* parent = e.menu->AddItem(_T("Parent menu item")) ;
parent->SetHasSubMenu(true);

parent->GetSubMenu()->AddItem(_T("Sub menu item 1"));
parent->GetSubMenu()->AddItem(_T("Sub menu item 2"));
Back to top
Display posts from previous:   
Forum Index -> EZNamespaceExtensionsMFC All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group