Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Mon Dec 10, 2007 5:41 am Post subject: HOWTO: Register a shell extension for multiple targets/extensions |
|
|
Some shell extensions, such as the ContextMenuExtension, PropertySheetExtension, IconExtension, etc require you to specify a target (typically a file extension) by overriding GetExtensionTargetInfo method. You can specify multiple targets by using CExtensionTargetInfo.AddFileExtensionTarget method as follows :
void CContextMenuExtension1::GetExtensionTargetInfo(CExtensionTargetInfo& info)
{
// TODO : Change the extension below to your desired extension.
info.AddFileExtensionTarget(_T(".dll"));
info.AddFileExtensionTarget(_T(".exe"));
info.AddFileExtensionTarget(_T(".ocx"));
} |
|