![]() |
Platforms, Frameworks & Libraries »
ATL »
General
Intermediate
License: The Code Project Open License (CPOL)
Property Page and Context Menu Shell Extension ATL WizardsBy Shaun WildeA wizard that allows you to create an ATL Property Page or Context Menu extensions |
VC6, ATL, STL, Dev
|
|
Advanced Search |
|
|
|
|||||||||||
These custom wizards allow you to create Property Page and Context Menu shell extensions. The objects that are created have all the interfaces that are necessary for either the Property Page or Context Menu shell extensions. Some default functionality has been added however it is recommended that the developer familiarises themselves with articles indicated in the references before editing the default auto generated code.
To install the Shell Extension Wizards you need to download shellext_dll.zip and extract the files to '???\Program Files\Microsoft Visual Studio\Common\MSDev98\Template\ATL'. You then need to register atlshlex.dll using regsvr32.exe. The Shell Extension components should then be available from ATL Object Wizard.
The shell extension components should now be available from the ATL Object Wizard.

These shell extension components have been grouped together as they both use the same page in the object creation sheet, see below. This extra page was created using the ATL Object Wizard Property Page component which is also available from this site.

This page allows you to choose whether the shell extension object applies to folder or files and if the shell extension object will be available if multiple files/folders are selected. There is also an option as to if the shell extension object will apply to all files (*) or to a particular file type. Extra file types will need to be added in by the developer.
IShellExt, IShellPropSheetExt and
IContextMenu interfaces is available in the MSDN.
Even though I have tested the code in unicode format I decided it was needless as I wanted the wizards to run under VC6 regardless of whether they were running under NT or Win9x.
Because I have used the STL to give me extra functionality such as maps and lists etc. this code does produce known warnings when compiled under 'Warning Level 4'.
| You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 17 Jan 2000 Editor: Chris Maunder |
Copyright 2000 by Shaun Wilde Everything else Copyright © CodeProject, 1999-2009 Web17 | Advertise on the Code Project |