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

Shell Extension using ATL and WTL

, 18 Mar 2001
Rate this:
Please Sign up or sign in to vote.
Shell extension that extends the Windows Explorer user interface
<!-- Download Links --> <!-- Article image -->

Sample Image - ShellServer.gif

<!-- Add the rest of your HTML here -->

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
No Biography provided

Comments and Discussions

 
GeneralDrag and drop PinmemberHarvinderSinghChaddha18-May-07 2:22 
GeneralRe: Drag and drop PinmemberIgor Vigdorchik18-May-07 12:02 
QuestionHow to change tool bar items and menu items Pinmemberkil ramesh17-Jan-06 23:57 
GeneralAdding Toolbar Buttons to Explorer Pinmemberiffi9928-May-03 21:29 
GeneralRe: Adding Toolbar Buttons to Explorer PinmemberIgor Vigdorchik9-May-03 10:42 
GeneralRe: Adding Toolbar Buttons to Explorer PinmemberSardaukar21-Sep-03 0:04 
GeneralFile Open Pinmembergnichola11-Oct-01 13:11 
Generalgood stuff. btw: the toolbar icons in xp are 24x24... PinmemberAnonymous28-Sep-01 9:11 
GeneralRe: good stuff. btw: the toolbar icons in xp are 24x24... PinmemberIgor Vigdorchik4-Oct-01 11:18 
GeneralRe: good stuff. btw: the toolbar icons in xp are 24x24... PinmemberAnonymous13-Nov-01 8:55 
GeneralRe: good stuff. btw: the toolbar icons in xp are 24x24... PinmemberIgor Vigdorchik15-Nov-01 3:47 
QuestionHandling ? PinmemberAnonymous15-Jun-01 4:27 
AnswerRe: Handling ? PinmemberIgor Vigdorchik20-Jun-01 13:17 
Questionatlapp.h missing ? PinmemberJuergen19-Mar-01 21:59 
AnswerRe: atlapp.h missing ? PinmemberAnonymous20-Mar-01 4:59 
AnswerRe: atlapp.h missing ? PinmemberIgor Vigdorchik20-Mar-01 6:13 
GeneralRe: atlapp.h missing ? PinmemberJuergen20-Mar-01 22:14 

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
Web04 | 2.8.140709.1 | Last Updated 19 Mar 2001
Article Copyright 2001 by Igor Vigdorchik
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid