Sky Software Homepage LogicNP Software Knowledge Base And FAQ

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

HOWTO: Register a shell extension for multiple targets/extensions

 
Subscribe to the RSS feed for this forum  Forum Index -> EZShellExtensionsMFC
View previous topic :: View next topic  
Author Message
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"));

}
Back to top
Display posts from previous:   
Forum Index -> EZShellExtensionsMFC All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group