Click here to Skip to main content
15,441,149 members
Articles / Desktop Programming / MFC
Posted 12 Jul 2002


381 bookmarked

GuiToolkit MFC Extension

Rate me:
Please Sign up or sign in to vote.
4.53/5 (166 votes)
16 Aug 20044 min read
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


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

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

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.


  • 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.


  • 31st July, 2002 - Updated source code
  • 20th August, 2002 - Updated source code
  • 10th January, 2003 - Updated source code
  • 18th August, 2004 - Updated source code


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
United States United States
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.

At the moment I live in Bogotá Colombia with my wife Zoraida and my three children Carolina, Andrés and Diego. /

Comments and Discussions

QuestionPort to vs2013, not work with x64 program. Pin
wuzhlg24-Aug-14 22:35
Memberwuzhlg24-Aug-14 22:35 
AnswerRe: Port to vs2013, not work with x64 program. Pin
Member 127432518-Apr-18 2:24
MemberMember 127432518-Apr-18 2:24 
QuestionA bug about Gui_DevStudio project Pin
Hui Jin for china5-Sep-13 16:51
MemberHui Jin for china5-Sep-13 16:51 
BugA tiny bug in function CGuiControlBar::InitAutoHide() Pin
Henter Wang29-Jul-13 22:38
MemberHenter Wang29-Jul-13 22:38 
QuestionHow do I get Lastest version(ver1.9)? Pin
kwonkiwoon10-Apr-12 23:56
Memberkwonkiwoon10-Apr-12 23:56 
AnswerRe: How do I get Lastest version(ver1.9)? Pin
grtwall10-Dec-12 15:38
Membergrtwall10-Dec-12 15:38 
General"How to change the label when there is double-click events"in MDI Pin
liangsong23-Aug-10 23:58
Memberliangsong23-Aug-10 23:58 
GeneralLatest version is here [modified] PinPopular
Vince Ricci30-Jul-10 12:43
MemberVince Ricci30-Jul-10 12:43 
GeneralRe: Latest version is here Pin
pophelix29-Aug-10 2:22
Memberpophelix29-Aug-10 2:22 
GeneralRe: Latest version is here Pin
el goano13-Feb-12 4:57
Memberel goano13-Feb-12 4:57 
GeneralRe: Latest version is here [modified] Pin
xplong25-Mar-12 6:43
Memberxplong25-Mar-12 6:43 
GeneralAnyone else to know how to using GuiToolkit with vs2008.... Pin
fdragons6-May-10 15:52
Memberfdragons6-May-10 15:52 
Generaluxtheme.h is missing from any source Pin
Vaclav_4-Feb-10 14:59
MemberVaclav_4-Feb-10 14:59 
GeneralRe: uxtheme.h is missing from any source Pin
fdragons5-May-10 18:23
Memberfdragons5-May-10 18:23 
Questionhow to add the left image for menu item? Pin
zigzagergg17-Nov-09 1:24
Memberzigzagergg17-Nov-09 1:24 
QuestionHow to delete the main Menu?(Gui_DevStudio ) Pin
lostboy12331-Aug-09 23:50
Memberlostboy12331-Aug-09 23:50 
QuestionHow to control the CGuiControlBar's size? Pin
zhoujiamurong26-Jul-09 22:56
Memberzhoujiamurong26-Jul-09 22:56 
QuestionHow to convert this project to VS2008? Pin
dnybz12-Jun-09 3:12
Memberdnybz12-Jun-09 3:12 
hi all

I'am in the process of conversion, the menu does not display text.

AnswerRe: How to convert this project to VS2008? Pin
reon20-Jul-09 22:49
Memberreon20-Jul-09 22:49 
GeneralRe: How to convert this project to VS2008? Pin
Member 9675817-Feb-10 18:14
MemberMember 9675817-Feb-10 18:14 
GeneralAbout Character Set Pin
voidr17-Jan-09 4:35
Membervoidr17-Jan-09 4:35 
GeneralRe: About Character Set Pin
zhuhuaizhong30-Jan-10 14:48
Memberzhuhuaizhong30-Jan-10 14:48 
GeneralLNK1104: cannot open file "GuiTk115d.lib" Pin
imacess2-Dec-08 19:47
Memberimacess2-Dec-08 19:47 
Questionhow to modify menu text Pin
duware28-Aug-08 21:12
Memberduware28-Aug-08 21:12 
GeneralProblems with theme Office in Windows Vista. Pin
PaulaPaziani26-Aug-08 10:24
MemberPaulaPaziani26-Aug-08 10:24 

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.