Click here to Skip to main content
6,596,602 members and growing! (19,511 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » ATL » General     Intermediate License: The Code Project Open License (CPOL)

Property Page and Context Menu Shell Extension ATL Wizards

By Shaun Wilde

A wizard that allows you to create an ATL Property Page or Context Menu extensions
VC6, ATL, STL, Dev
Posted:17 Jan 2000
Views:56,963
Bookmarked:39 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
21 votes for this article.
Popularity: 6.23 Rating: 4.71 out of 5
  • 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.

    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


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

    Been involved in programming from the early '80s. First on my Spectrum, then an Amstrad. Did lots of Fortran while at University before becoming involved in Forth, Prolog, Pascal, Occam, C and eventually C++. Eventually started programming on the Windows platform using Borland’s OWL framework, during my postgraduate years. When I started work in '94, I learnt MFC followed by COM and ATL and never looked back. Now working exclusively in .NET, working on WinForms, ASP.NET and the Compact Framework using C# and VB.NET. Using every bit of the .NET framework I can such as WebServices and writing my own controls for my .NET Portal, and for the Compact Framework. Still lots I don't know, but the end of the universe hasn't happened yet - I wonder if I'll have time?

    I was a permanent employee for a number of companies until Dec 2000 before going independent after the DotCom I ws involved with went DotBomb. Now supplying consulting services to various institutions in London and surrounding regions i.e. UK Smile.

    Now started using BizTalk and the latest .NET framework - yeha.
    Occupation: Architect
    Location: United Kingdom United Kingdom

    Other popular ATL articles:

    Article Top
    You must Sign In to use this message board.
    FAQ FAQ 
     
    Noise Tolerance  Layout  Per page   
     Msgs 1 to 5 of 5 (Total in Forum: 5) (Refresh)FirstPrevNext
    AnswerWriting ActiveX Controls using Custom Interfaces PinmemberFred Mackie13:31 15 Jan '09  
    GeneralRe: Writing ActiveX Controls using Custom Interfaces PinmemberShaun Wilde1:09 16 Jan '09  
    GeneralDesktop menu? Pinmemberdragomir2:34 9 Apr '04  
    Generalnice PinmemberAnonymous13:11 1 Mar '02  
    GeneralObject Wizard PinmemberMaxime Labelle23:20 29 Jan '01  

    General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin 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
    Web22 | Advertise on the Code Project