Click here to Skip to main content
15,881,852 members
Articles / Desktop Programming / MFC

GuiToolkit MFC Extension

Rate me:
Please Sign up or sign in to vote.
4.53/5 (167 votes)
16 Aug 20044 min read 2.1M   38.6K   384   625
A set of MFC GUI classes which allow you to build applications with the new Microsoft interface style
In this article, you will learn about GuiToolkit which is a complete set of classes based on MFC. It allows you to build applications with nice and sophisticated interfaces such as Visual Studio .NET, Office 2003, etc.

Image 1

Introduction

GuiToolkit is a complete set of classes based on MFC, that allows you to build applications with nice and sophisticated interfaces such as Visual Studio .NET, Office 2003, etc. The primary target is to have a complete free library that can be used without restrictions and suitable to user or programmers needs. This class set includes file management, connection through ADO, up to complex user's interface classes.

Guitoolkit was developed based on Paul Dilascia’s classes (father of almost all of this kind of libraries), including features like a Menu System and a floating bar (Thanks Paul for let me “ruin” all its wonderful code, hope you understand that I did it with sincerely my best intention); about the NewMenu Class (written by Bruno Podetti). I used “Hook” system. As a principal fact, I have tried to focus on code simplicity, in the way that you could isolate a class to understand it. Don’t expect to find in this library complex classes embedded into other, or sophisticated programming techniques.

I’ve tried to respect and preserve original class names of different authors, so every class that doesn’t begin with “Gui”, wasn’t written by me. As you could see, I’m the author of the 9x% of this classes.

GuiToolkit Users Guide

The code is free to use, except code that is not written by me, anyways you cannot take total or partial control of this code. This library is distributed in the hope that it will be useful, but without any warranty, without even the implied warranty of merchantability or fitness for a particular purpose.

Take your time to understand the given examples, and how to use the classes. In any case, I appreciate that someone wants to document this library. This library has a few or a lot of troubles, I hope that you can understand and forgive these human failures, like: There’s no documentation available, and there’s not tech support and some bugs in Windows 98.

You can use this library as you want and to demonstrate good or bad programming techniques, for your commercial application, to play, for improve it and share with us changes and to make me feel that my job gave you a plus making free code, in other words you don’t have to ask anybody for permissions this code is FREE in the way you respect author’s rights that let me use their code; and if you want to give me some credits (your welcome!), or you could show me, tell me and give the personal satisfaction of watching your own GuiToolkit built apps! “I appreciate it a lot”.

You can criticize the code being respectful, insults can freely direct to me but exclude Paul Dilascia, Bruno Podetti and other authors that I mention in credits section; they’re not guilty about my creation.

New Features

  • OneNote ® Style MDI tabs
  • Office ® XP/2003 look
  • Auto hide dockable bars
  • Docking tab colors
  • Visual Studio .NET look
  • And all components that you already know!

If you want the latest changes, visit the library web page http://www.beyondata.com/.

Some Examples

Image 2

Office menu bar XP styles provided:

Image 3

You can dispose of almost all controls in a dialog box using the CGuiStaticStandar class and obtain an interface such as next image.

Image 4

View more http://www.beyondata.com/.

What Comes Next?

Many things should be improved in the close future, errors, more controls, a text editor, to improve some classes, windows docking, autohidden functions, etc.

Credit

  • Thanks to Paul Dilascia VC++ MFC Guru, to allow using his class set for the menu management, thanks a lot I learned a huge things of his code.
  • Thanks to Bruno Podetti for your splendid menu class.
  • Thanks to David Yuheng Zhao for your VisualStylesXP class.
  • Thanks to Mohammad Ahmad Khaleel for your Cgradient class.

History

  • 31st July, 2002 - Updated source code
  • 20th August, 2002 - Updated source code
  • 10th January, 2003 - Updated source code
  • 18th August, 2004 - Updated source 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
Colombia Colombia
My name is Francisco Campos, A developer as you.I have the title of Engineer of Systems of the Universidad Autonoma de Colombia.My real Job Information Security officer, experience in security assessment, applications, and other related subjects.

Francisco.camposg@outlook.com

Comments and Discussions

 
GeneralRe: Missing uxtheme.h and tmschema.h Pin
Anonymous18-Apr-05 18:36
Anonymous18-Apr-05 18:36 
QuestionHow can I make the control bar autohide at the left side when the application starts up Pin
Member 9338499-Jan-05 14:32
Member 9338499-Jan-05 14:32 
AnswerRe: How can I make the control bar autohide at the left side when the application starts up Pin
charonpluton27-Nov-06 13:06
charonpluton27-Nov-06 13:06 
GeneralError on using toolkit.. d Pin
Maverick3-Jan-05 12:52
Maverick3-Jan-05 12:52 
GeneralRe: Error on using toolkit.. d Pin
Patrik Mueller11-Jan-05 19:45
Patrik Mueller11-Jan-05 19:45 
GeneralRe: Error on using toolkit.. d Pin
SAMZCN23-Feb-05 21:16
SAMZCN23-Feb-05 21:16 
GeneralAmazing Work Pin
windcbf3-Jan-05 7:10
windcbf3-Jan-05 7:10 
GeneralBugs report. Pin
HarveyLiu29-Nov-04 18:43
HarveyLiu29-Nov-04 18:43 
I reported the follow bugs to the author, Francisco Campos, but still not get reply, maybe he is very busy, so I paste them here for anyone's tip, thanks so much! I'm so puzzled by them!Rose | [Rose]
------------------------------------------------
1.The bug happens in GUIMDIFrame, you can check it through your CGuiTabbedDemo.exe, when you new and save 3 files to your disk, and then they will be added into recent file lists, when you select from recent file lists to reopen a file, if it’s not current active one, the tab should set it to current select, but in 1.1.5 is still can’t work well.

I think maybe you can settle it through call CGuiMDIFrame ‘s ActivateFrame(int nCmdShow) function, and add some codes there.
CGuiMDIFrame : public CMDIFrameWnd

2. In your ToolBarsDemo.exe, the “panels” tool, when you open the “prueba”, and drag it out(not just dropdown from toolbar), and now, you click “open” button to call the “open” dialog or any other dialog, make sure the “open” dialog or something like that to cover the “prueba”, then when you close the dialog over “prueba”, you will find the “prueba” can’t work well, the child inside it has lost! I can’t settle this.

-----------------------------------------------Confused | :confused: Confused | :confused:
GeneralRe: Bugs report. Pin
mattf0610-Jan-05 16:45
mattf0610-Jan-05 16:45 
GeneralIt's really works! Pin
HarveyLiu5-Feb-05 21:34
HarveyLiu5-Feb-05 21:34 
QuestionUpdate caption Item menu ??? Pin
xcom77722-Nov-04 1:36
xcom77722-Nov-04 1:36 
AnswerRe: Update caption Item menu ??? Pin
xcom77723-Dec-04 17:02
xcom77723-Dec-04 17:02 
GeneralAbout the uxtheme.h Pin
kittity14-Nov-04 4:50
kittity14-Nov-04 4:50 
QuestionBug? Pin
bluemas5-Oct-04 21:19
bluemas5-Oct-04 21:19 
AnswerRe: Bug? Pin
bluemas5-Oct-04 21:22
bluemas5-Oct-04 21:22 
GeneralI miss the following code... Pin
bluemas5-Oct-04 21:47
bluemas5-Oct-04 21:47 
GeneralError while built GuiTk115 Pin
quanglh5-Oct-04 15:44
quanglh5-Oct-04 15:44 
GeneralCGuiTabWnd Pin
piotrM30-Sep-04 5:38
piotrM30-Sep-04 5:38 
GeneralRequest new feature: customize toolbar and hotkey Pin
LaoWei29-Sep-04 15:31
LaoWei29-Sep-04 15:31 
GeneralSmall bug with dual-display Pin
mattf0616-Sep-04 0:36
mattf0616-Sep-04 0:36 
GeneralError while compiling with Vistual Studio 2005 beta/Whidbey Pin
Robert Buldoc10-Sep-04 13:07
Robert Buldoc10-Sep-04 13:07 
GeneralRe: Error while compiling with Vistual Studio 2005 beta/Whidbey Pin
Robert Buldoc10-Sep-04 13:24
Robert Buldoc10-Sep-04 13:24 
GeneralExcellent!!! Pin
huangashen9-Sep-04 22:18
huangashen9-Sep-04 22:18 
GeneralRe: Excellent!!! Pin
Francisco Campos Gualdron17-Sep-04 2:57
Francisco Campos Gualdron17-Sep-04 2:57 
GeneralRe: Excellent!!! Pin
Member 122041324-Sep-04 6:18
Member 122041324-Sep-04 6:18 

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.