Click here to Skip to main content
Licence CPOL
First Posted 18 Mar 2001
Views 86,928
Bookmarked 25 times

Shell Extension using ATL and WTL

By | 18 Mar 2001 | Article
Shell extension that extends the Windows Explorer user interface

Sample Image - ShellServer.gif

Introduction

Here is another Shell extension sample - the one which extends Windows Explorer's user interface.

Let me note that my sample does not do anything useful - I'll try to think of something later - it just shows how to write this kind of shell extension.

How to install it?

Copy the ShellServer.dll to any directory of your choice and register it using regsvr32.exe. Next time when you open the Windows Explorer you'll see one more folder in the left pane tree - Shell Server. Just click on it and you'll see it in action.

a ShellServer integrates its own menu, toolbar buttons, text in the status bar with Windows Explorer and displays a listview control in the right pane of Explorer with some data.

There are 4 classes in the project:

  • CFolderObj which implements IShellFolder and IPersistFolder interfaces.
  • CViewObj which implements IShellView interface.
  • CMainDlg
  • CShellListView

CFolderObj and CViewObj are implemented using ATL, CMainDlg and CShellListView use WTL.

The implementation is pretty straightforward, except for one thing - if you want to handle window messages in the listview control you have to create the modeless dialog first and place a listview control on it.

I wrote it on WinNT 4.0 sp6 and did not test on Win95/98.

That's it. Enjoy it and use it any way you want. Do not even mention my name (I am a very modest person).

Credits - www.clipcode.com

License

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

About the Author

Igor Vigdorchik

Web Developer

United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralDrag and drop PinmemberHarvinderSinghChaddha2:22 18 May '07  
GeneralRe: Drag and drop PinmemberIgor Vigdorchik12:02 18 May '07  
QuestionHow to change tool bar items and menu items Pinmemberkil ramesh23:57 17 Jan '06  
GeneralAdding Toolbar Buttons to Explorer Pinmemberiffi99221:29 8 May '03  
GeneralRe: Adding Toolbar Buttons to Explorer PinmemberIgor Vigdorchik10:42 9 May '03  
GeneralRe: Adding Toolbar Buttons to Explorer PinmemberSardaukar0:04 21 Sep '03  
GeneralFile Open Pinmembergnichola13:11 11 Oct '01  
Generalgood stuff. btw: the toolbar icons in xp are 24x24... PinmemberAnonymous9:11 28 Sep '01  
GeneralRe: good stuff. btw: the toolbar icons in xp are 24x24... PinmemberIgor Vigdorchik11:18 4 Oct '01  
GeneralRe: good stuff. btw: the toolbar icons in xp are 24x24... PinmemberAnonymous8:55 13 Nov '01  
GeneralRe: good stuff. btw: the toolbar icons in xp are 24x24... PinmemberIgor Vigdorchik3:47 15 Nov '01  
QuestionHandling ? PinmemberAnonymous4:27 15 Jun '01  
AnswerRe: Handling ? PinmemberIgor Vigdorchik13:17 20 Jun '01  
Questionatlapp.h missing ? PinmemberJuergen21:59 19 Mar '01  
AnswerRe: atlapp.h missing ? PinmemberAnonymous4:59 20 Mar '01  
AnswerRe: atlapp.h missing ? PinmemberIgor Vigdorchik6:13 20 Mar '01  
GeneralRe: atlapp.h missing ? PinmemberJuergen22:14 20 Mar '01  

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.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120528.1 | Last Updated 19 Mar 2001
Article Copyright 2001 by Igor Vigdorchik
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid