Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Wed Oct 10, 2007 11:27 am Post subject: HOWTO : Add custom context menu items to the root folder of a namespace extension |
|
|
In order to add context menu items to the root folder of a namespace extension you must use EZShellExtensionsMFC to develop a context menu extension and target the context menu extension towards the root folder of your namespace extension by using the GetExtensionTargetInfo method as follows :
void CMyRootContextMenuExtension::GetExtensionTargetInfo(CExtensionTargetInfo& info)
{
info.AddRegistryKeyTarget(HKEY_CLASSES_ROOT,_T("CLSID\\{guid of NamespaceExtension}"));
}
The context menu extension can be present in the same project of your namespace extension. You can quickly add a new context menu extension to your project from the 'Project-->Add New Item..' dialog box.[/url] |
|