Click here to Skip to main content
15,880,905 members
Articles / Desktop Programming / ATL
Article

Property Page and Context Menu Shell Extension ATL Wizards

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
17 Jan 2000CPOL 86.1K   1.8K   41   5
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
  • 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.

    Image 1

    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.

    Image 2

    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)


    Written By
    Employed (other) Purplebricks
    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.

    Comments and Discussions

     
    AnswerWriting ActiveX Controls using Custom Interfaces Pin
    Fred Mackie15-Jan-09 12:31
    Fred Mackie15-Jan-09 12:31 
    GeneralRe: Writing ActiveX Controls using Custom Interfaces Pin
    Shaun Wilde16-Jan-09 0:09
    Shaun Wilde16-Jan-09 0:09 
    QuestionDesktop menu? Pin
    dragomir9-Apr-04 1:34
    dragomir9-Apr-04 1:34 
    Generalnice Pin
    1-Mar-02 12:11
    suss1-Mar-02 12:11 
    GeneralObject Wizard Pin
    Maxime Labelle29-Jan-01 22:20
    Maxime Labelle29-Jan-01 22: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.