Click here to Skip to main content
11,921,354 members (61,557 online)
Click here to Skip to main content
Add your own
alternative version


41 bookmarked

Property Page and Context Menu Shell Extension ATL Wizards

, 17 Jan 2000 CPOL
Rate this:
Please Sign up or sign in to vote.
A wizard that allows you to create an ATL Property Page or Context Menu extensions
  • Download source files - 37 Kb
  • Download DLL and template files - 40 Kb
  • <!-- Article Starts -->

    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 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.


    • Information on the IShellExt, IShellPropSheetExt and IContextMenu interfaces is available in the MSDN.

    • Q223439 - HOWTO: Using Class Wrappers to Access Windows Common Controls in ATL


    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'.


    This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


    About the Author

    Shaun Wilde
    Software Developer (Senior) MYOB
    Australia Australia
    All articles are supplied as-is, as a howto on a particular task that worked for me in the past. None of the articles are supposed to be out-of-the-box freeware controls and nor should they be treated as such. Caveat emptor.

    Now living and working in Australia, trying to be involved in the local .NET and Agile communities when I can.

    I spend a good chunk of my spare time building OpenCover and maintaining PartCover both of which are Code Coverage utilities for .NET.

    You may also be interested in...

    Comments and Discussions

    AnswerWriting ActiveX Controls using Custom Interfaces Pin
    Fred Mackie15-Jan-09 13:31
    memberFred Mackie15-Jan-09 13:31 
    This might help: Write ActiveX Controls Using Custom Interfaces Provided by ATL 3.0
    GeneralRe: Writing ActiveX Controls using Custom Interfaces Pin
    Shaun Wilde16-Jan-09 1:09
    memberShaun Wilde16-Jan-09 1:09 
    QuestionDesktop menu? Pin
    dragomir9-Apr-04 2:34
    memberdragomir9-Apr-04 2:34 
    Generalnice Pin
    Anonymous1-Mar-02 13:11
    memberAnonymous1-Mar-02 13:11 
    GeneralObject Wizard Pin
    Maxime Labelle29-Jan-01 23:20
    memberMaxime Labelle29-Jan-01 23:20 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Terms of Use | Mobile
    Web03 | 2.8.151120.1 | Last Updated 18 Jan 2000
    Article Copyright 2000 by Shaun Wilde
    Everything else Copyright © CodeProject, 1999-2015
    Layout: fixed | fluid