Click here to Skip to main content
15,886,006 members
Articles / Desktop Programming / MFC
Article

XP style Explorer Bar (Win32/MFC)

Rate me:
Please Sign up or sign in to vote.
4.86/5 (54 votes)
4 Mar 20042 min read 477.2K   9.2K   146   154
Implementation of a shellstyle.dll aware XP Windows Explorer Bar

Image 1

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


Written By
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

 
GeneralRe: Compile Errors Pin
Ingo A. Kubbilun17-Jun-04 2:26
Ingo A. Kubbilun17-Jun-04 2:26 
GeneralGet Item information from a pane Pin
Pixbyte5-Jun-04 12:29
Pixbyte5-Jun-04 12:29 
GeneralRe: Get Item information from a pane Pin
Ingo A. Kubbilun6-Jun-04 22:27
Ingo A. Kubbilun6-Jun-04 22:27 
GeneralRe: Get Item information from a pane Pin
Pixbyte7-Jun-04 2:27
Pixbyte7-Jun-04 2:27 
GeneralRe: Get Item information from a pane Pin
Pixbyte30-Sep-04 13:17
Pixbyte30-Sep-04 13:17 
GeneralError !!! VC++.NET 2003 !!! Pin
Razr3333-Mar-04 8:09
Razr3333-Mar-04 8:09 
GeneralRe: Error !!! VC++.NET 2003 !!! Pin
Ingo A. Kubbilun3-Mar-04 8:18
Ingo A. Kubbilun3-Mar-04 8:18 
GeneralRe: Error !!! VC++.NET 2003 !!! Pin
Razr3333-Mar-04 8:32
Razr3333-Mar-04 8:32 
http://www.datamekanix.com
last update on this Web - Mar 31 2002 !!!Confused | :confused:

Hi, all
GeneralRe: Error !!! VC++.NET 2003 !!! Pin
Ingo A. Kubbilun4-Mar-04 16:02
Ingo A. Kubbilun4-Mar-04 16:02 
GeneralRe: Error !!! VC++.NET 2003 !!! Pin
Mathew Hall9-Mar-04 21:20
Mathew Hall9-Mar-04 21:20 
GeneralRe: Error !!! VC++.NET 2003 !!! Pin
Anthony_Yio21-Mar-04 20:18
Anthony_Yio21-Mar-04 20:18 
GeneralErrors compiling with Visual Studio C++ 6.0 Pin
accarvajal3-Mar-04 4:01
accarvajal3-Mar-04 4:01 
GeneralRe: Errors compiling with Visual Studio C++ 6.0 Pin
Ingo A. Kubbilun3-Mar-04 7:53
Ingo A. Kubbilun3-Mar-04 7:53 
GeneralRe: Errors compiling with Visual Studio C++ 6.0 Pin
accarvajal3-Mar-04 11:26
accarvajal3-Mar-04 11:26 
GeneralRe: Errors compiling with Visual Studio C++ 6.0 Pin
cinda2-Oct-04 15:46
cinda2-Oct-04 15:46 
GeneralRe: Errors compiling with Visual Studio C++ 6.0 Pin
cinda2-Oct-04 15:46
cinda2-Oct-04 15:46 
Questionhow can I use your class in win32 program? Pin
hanghouse28-Feb-04 20:45
hanghouse28-Feb-04 20:45 
AnswerRe: how can I use your class in win32 program? Pin
Ingo A. Kubbilun29-Feb-04 6:06
Ingo A. Kubbilun29-Feb-04 6:06 
GeneralRe: one further question Pin
hanghouse29-Feb-04 18:12
hanghouse29-Feb-04 18:12 
GeneralRe: one further question Pin
Ingo A. Kubbilun29-Feb-04 23:31
Ingo A. Kubbilun29-Feb-04 23:31 
GeneralRe: one further question Pin
hanghouse29-Feb-04 23:39
hanghouse29-Feb-04 23:39 
GeneralRe: one further question Pin
Ingo A. Kubbilun29-Feb-04 23:52
Ingo A. Kubbilun29-Feb-04 23:52 
GeneralRe: one further question Pin
hanghouse1-Mar-04 0:31
hanghouse1-Mar-04 0:31 
Generalstrange pictures Pin
27-Feb-04 5:40
suss27-Feb-04 5:40 
GeneralRe: strange pictures Pin
pgrohs27-Feb-04 5:43
pgrohs27-Feb-04 5:43 

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.