Click here to Skip to main content
15,887,027 members
Articles / Desktop Programming / MFC
Article

Office XP Style, a new one

Rate me:
Please Sign up or sign in to vote.
3.39/5 (22 votes)
10 May 20043 min read 238.5K   8.5K   72   80
A new Office XP style, borders, grippers, buttons, etc.

Image 1

History

Screen Shots

Image 2

Three built-in styles available: Classic, Office XP, and Office 2003

Image 3

The Customize Dialog, and a balloon when is showed

Image 4

Three menu animations: Fade, Slide, Unfold

Image 5

The "About Library" dialog, if you see your name here, then some code of you helped to do this library :)

Image 6

Very simple for now, this is the "Advanced Settings" dialog, I've removed some features and left only these two, this will change, I promise ;)

Image 7

Full Windows Skin (Experimental), see the titlebars, buttons, and this little dialog, from here you can chose your skin :), remember the old whistler? :P

Version 1.0 Alpha - Not Available for download

News:

  • Introducing Fake Menus with Office XP Style

  • Introducing Menus Shadows

Version 1.1 Alpha - Not Available for Download

News:

  • Converted to library
  • Introducing Windows Classic Style
  • Added Icons to menus
  • Introducing Customize Dialog, similar to Office
  • Added combo box to the toolbar

Fixes:

  • Fixed: When undocking toolbars it can't be docked again
  • Fixed: Shadows remaining when menu is closed
  • Fixed: Menus showing outside the desktop

Library Version

Version 1.15 Beta 1 - Preview Available

News:

  • Introducing Office 2003 style
  • Introducing Advanced Settings dialog
  • Added "Show content while dragging" option
  • Added Menus animations: Fade, Slide, Unfold
  • Introducing Full Windows Skins (Borders, Titlebar, etc)
  • Introducing Buttons Skins (currently disabled by default)
  • Added "BallonHelp" class to emulate balloon messages

Fixes:

  • Fixed: When moving the toolbar remains a part of it in the old position
  • Fixed: Office XP style looks more like the original one
  • Fixed: Changing between styles was not working

Library Beta

Oh god, my school was killing me, finally I found some time to update mi article, and show the new stuff, unfortunately my demo is too big to upload it to this site, I'll make it smaller, and since this is now a library I think I'll need a name for this, I've named Advanced User Interface, but I think It could be a better name, because I'm trying to make this a skin library, so I accept suggestions.

Soon I'll upload the demo and some screenshots.

Introduction

I was watching some articles here, like Office XP look & feel controls. Well I read a lot, but only this called my attention, and I decided to make a ToolBar, a StatusBar and a Menubar with the Office XP Style. I checked all the articles and then I based my toolbar on the one of Jean-Michel, it's very similar, well this is 'coz I'm a beginner and I need a base class to make my own one. There are some things that differ from the version of Jean-Michel, like the background icons, the borders, and the grippers. Really I can say that this class is an enhanced version of the Jean one, it uses the same controls (I used 'cos is based on Jean's version). I've included the CMenuXP class of Jean, just to make a full XP style, and some more options are copied from other articles. Thanks to their authors.

Implementation

To use this you just have to include the required file for the class.. To use the CXPMenuBar class, you have to include the file menubar.h and specify a creation option (just like a toolbar, see the demo). To use the CXPToolBar class, you have to include the xptoolbar.h and replace the CToolBar m_wndToolBar declaration in your files by CXPToolBar m_wndToolBar. The status bar is very simple you just have to include the cxpstatusbar.h and replace the

CStatusBar 
m_wndStatusBar
declaration in your files by
CCXPStatusBar 
m_wndStatusBar
.

Credit

Thanks to Jean-Michel LE FOL for his toolbar code and the authors of the respective code.

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
Mexico Mexico
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: well done Pin
MaTrIX2k29-Dec-02 7:48
MaTrIX2k29-Dec-02 7:48 
GeneralRe: well done Pin
xuell009-Dec-02 14:45
xuell009-Dec-02 14:45 
GeneralThis menu as popupmenu Pin
AlexMarbus18-Jun-02 3:38
AlexMarbus18-Jun-02 3:38 
GeneralColoured Text in the StatusBar Pin
17-Jun-02 4:12
suss17-Jun-02 4:12 
GeneralW2K Pin
Armen Hakobyan8-Jun-02 2:53
professionalArmen Hakobyan8-Jun-02 2:53 
Generalremaining shadow Pin
2-Jun-02 8:31
suss2-Jun-02 8:31 
GeneralToolbar button colours Pin
21-May-02 4:49
suss21-May-02 4:49 
GeneralRe: Toolbar button colours Pin
MaTrIX2k221-May-02 8:05
MaTrIX2k221-May-02 8:05 
GeneralMenu in VC++6 Pin
19-May-02 10:54
suss19-May-02 10:54 
GeneralRe: Menu in VC++6 Pin
MaTrIX2k219-May-02 13:04
MaTrIX2k219-May-02 13:04 
GeneralRe: Menu in VC++6 Pin
AnthonyJ7-Mar-03 1:34
AnthonyJ7-Mar-03 1:34 
QuestionAdding a Combo Box? Pin
15-May-02 22:19
suss15-May-02 22:19 
AnswerRe: Adding a Combo Box? Pin
MaTrIX2k216-May-02 8:37
MaTrIX2k216-May-02 8:37 
GeneralThat's Fine!!! Pin
16-May-02 10:32
suss16-May-02 10:32 
QuestionAdding a Combo Box? Pin
15-May-02 22:18
suss15-May-02 22:18 
GeneralText Labels On Right Pin
13-Apr-02 16:43
suss13-Apr-02 16:43 
GeneralBug with child control menu! Pin
chenzhu8-Apr-02 6:01
chenzhu8-Apr-02 6:01 
GeneralBug in CXPToolbar Pin
Roberto Cesina2-Apr-02 7:18
Roberto Cesina2-Apr-02 7:18 
GeneralWhat bug? Pin
Sprinter9-Dec-03 5:39
Sprinter9-Dec-03 5:39 
GeneralProblems with CXPMenuBar class Pin
2-Apr-02 2:17
suss2-Apr-02 2:17 
GeneralRe: Problems with CXPMenuBar class Pin
2-Apr-02 3:46
suss2-Apr-02 3:46 
GeneralProblem with menubar Pin
Maciek Niedzielski1-Apr-02 10:01
Maciek Niedzielski1-Apr-02 10:01 
GeneralRe: Problem with menubar Pin
MaTrIX2k21-Apr-02 10:35
MaTrIX2k21-Apr-02 10:35 
Generalwhy copyright removed Pin
1-Apr-02 9:52
suss1-Apr-02 9:52 
GeneralRe: why copyright removed Pin
MaTrIX2k21-Apr-02 10:33
MaTrIX2k21-Apr-02 10:33 

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.