Click here to Skip to main content
Click here to Skip to main content

Property Page and Context Menu Shell Extension ATL Wizards

, 17 Jan 2000
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.

    Installation

    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.

    Usage

    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.

    References

    • 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

    Unicode

    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.

    STL

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

    License

    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.
    Follow on   Twitter   Google+   LinkedIn

    Comments and Discussions

     
    AnswerWriting ActiveX Controls using Custom Interfaces PinmemberFred Mackie15-Jan-09 12:31 
    GeneralRe: Writing ActiveX Controls using Custom Interfaces PinmemberShaun Wilde16-Jan-09 0:09 
    QuestionDesktop menu? Pinmemberdragomir9-Apr-04 1:34 
    Generalnice PinmemberAnonymous1-Mar-02 12:11 
    GeneralObject Wizard PinmemberMaxime Labelle29-Jan-01 22:20 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
    Web01 | 2.8.140721.1 | Last Updated 18 Jan 2000
    Article Copyright 2000 by Shaun Wilde
    Everything else Copyright © CodeProject, 1999-2014
    Terms of Service
    Layout: fixed | fluid