Click here to Skip to main content
11,478,066 members (73,604 online)
Click here to Skip to main content

XP style Explorer Bar (Win32/MFC)

, 4 Mar 2004 374.8K 8.1K 141
Rate this:
Please Sign up or sign in to vote.
Implementation of a shellstyle.dll aware XP Windows Explorer Bar

Introduction

This article presents a full implementation of the Windows XP Explorer Bar as a set of Win32 controls and a MFC wrapper. The Explorer Bar works on Windows 98/Me/2k/XP and is fully shellstyle.dll aware, i.e. can be used with any XP visual theme (standard, 3rd party non-standard, and the classic Windows scheme).

The new custom controls include extended button controls, extended static controls, tasklink controls, and collapsible header controls.

Background

The Windows Explorer that comes with Windows XP introduces a fancy new control bar called "Explorer Bar". The bar handles one or more collapsible panes containing tasklinks or informative text and having a collapsible header control.

The Explorer Bar is neither exported by any API nor uses it the standard XP theme renderer. All bitmaps and metrics reside in specialized DLLs named "shellstyle.dll".

The implementation presented here has a full parser for this non-standard information and a highly sophisticated rendering engine allowing fade and roll effects to be applied to expanding/collapsing panes.

Using the code

The zip archive contains a Platform SDK like HTMLHelp file (explorerbar.chm) with the full documentation (Win32/MFC). You must build all configurations of explorerbar.dsw before using the library. If you are interested in the sample application, then build ExpBarSample.dsw as well.

After building all configurations of explorerbar.dsw you find the library in "explorerbar\lib" and the MFC wrapper in "explorerbar\lib\MFC".

General comments, points of interest

Approx. 18.000 lines of code needed to be written in order to support all functionalities of the Windows XP Explorer Bar, i.e. expect bug-fixes!

Even if the Explorer Bar will be exported in the future by an API, it will not work under Windows 98/Me/2k because it will probably use a new XP theme renderer tightly linked to Windows XP.

One big TODO item is a pure MFC version of the Explorer Bar. This would simplify the message handling stated in the Explorer Bar SDK (HTMLHelp). The current implementation (explorerbar.dll) has been written for Win32 applications for maximum platform support.

History

Version 1.0 is the first published version of the Explorer Bar. It is embedded in the great sizeable control bar by Cristi Posea.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Ingo A. Kubbilun
Software Developer (Senior)
Germany Germany
Dipl.-Inform., 26 years experience (1985-2011) in coding/software development (C/C++/C#/Java/x86-Assembler), experienced in Win32/MFC/WPF development, UNIX (Linux/Solaris), and especially in IT-security

Comments and Discussions

 
GeneralA problem with refresh [modified] Pin
yyyzlf30-Nov-09 23:22
memberyyyzlf30-Nov-09 23:22 
QuestionWindows 7? Pin
Stefan Dahlin28-Oct-09 6:32
memberStefan Dahlin28-Oct-09 6:32 
AnswerRe: Windows 7? Pin
Member 850700522-Dec-11 5:39
memberMember 850700522-Dec-11 5:39 
QuestionI can't build this project!Why? Pin
hunzaixa17-Apr-08 0:01
memberhunzaixa17-Apr-08 0:01 
Generali can not build this project, pls help me. Pin
thuong1012773-Mar-08 20:11
memberthuong1012773-Mar-08 20:11 
Generalnice control Pin
an77777-Nov-07 17:58
memberan77777-Nov-07 17:58 
QuestionVISTA ? Pin
Michael Chourdakis21-Jun-07 8:14
memberMichael Chourdakis21-Jun-07 8:14 
Generalerror Pin
aldo hexosa6-May-07 13:58
memberaldo hexosa6-May-07 13:58 
GeneralShareable Section created by the linker Pin
Michael Chourdakis24-Apr-07 8:29
memberMichael Chourdakis24-Apr-07 8:29 
GeneralRe: Shareable Section created by the linker Pin
Michael Chourdakis24-Apr-07 8:44
memberMichael Chourdakis24-Apr-07 8:44 
QuestionA big error Pin
yhw198504011-Apr-07 17:52
memberyhw198504011-Apr-07 17:52 
Generalexplorer bar width Pin
manuel3579-Feb-07 9:33
membermanuel3579-Feb-07 9:33 
GeneralRe: explorer bar width Pin
Tornado8a15-Aug-07 23:45
memberTornado8a15-Aug-07 23:45 
GeneralLoad C runtime library without using manifest Pin
sunika12-Nov-06 5:24
membersunika12-Nov-06 5:24 
QuestionDisable TaskLink32? Pin
Stefan Dahlin6-Sep-06 2:48
memberStefan Dahlin6-Sep-06 2:48 
Generalvs2005 error! Pin
kurome29-May-06 17:11
memberkurome29-May-06 17:11 
GeneralRe: vs2005 error! Pin
New_Rulz31-May-06 2:39
memberNew_Rulz31-May-06 2:39 
GeneralRe: vs2005 error! Pin
kurome4-Jun-06 15:42
memberkurome4-Jun-06 15:42 
QuestionHow can I prevent closing the Explorer bar Pin
frewah27-May-06 14:01
memberfrewah27-May-06 14:01 
AnswerRe: How can I prevent closing the Explorer bar Pin
frewah27-May-06 14:38
memberfrewah27-May-06 14:38 
QuestionToo many paint messages Pin
gunag3-May-06 3:16
membergunag3-May-06 3:16 
AnswerRe: Too many paint messages Pin
nanfang28-Sep-07 7:28
membernanfang28-Sep-07 7:28 
QuestionHow to change the style on the fly (kind of a solution) Pin
Lars [Large] Werner19-Apr-06 8:29
memberLars [Large] Werner19-Apr-06 8:29 
QuestionAgain Hiding/Showing problem Pin
gunag7-Apr-06 5:20
membergunag7-Apr-06 5:20 
GeneralUpdate on the problem: Again Hiding/Showing problem Pin
gunag7-Apr-06 5:58
membergunag7-Apr-06 5:58 

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 | Terms of Use | Mobile
Web01 | 2.8.150520.1 | Last Updated 5 Mar 2004
Article Copyright 2004 by Ingo A. Kubbilun
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid