Click here to Skip to main content
13,087,067 members (54,464 online)
Click here to Skip to main content
Add your own
alternative version


38 bookmarked
Posted 2 Aug 2001

ToolBar Customization

, 2 Aug 2001
Rate this:
Please Sign up or sign in to vote.
Toolbar Customization with drag & drop support.
<!-- Download Links --> <!-- Article image -->

Sample Image - tbcust.jpg

<!-- Add the rest of your HTML here -->


This is a little example of toolbar customization using drag and drop. Some of the code used here is from other authors (Paul di Lascia, Stan Levin etc.) but this is my contribution.

Some aspects of the code are not finished (such as saving and restoring the toolbar's state). I have tested the code on Windows 2000 so please let me know if you have problems on other platforms.

The important files are:-

tbbutton.h and tbbutton.cpp which include the implementation of the buttons (edit, combo, progress, dropdown menu etc). You can derive your own buttons from this basic implementation.

toolbar.h and toolbar.cpp which include the CToolBar code for customization and button management.

tbdlg.h and <tbdlg.cpp which include the dialog customization interface.

mainframe.cpp which enables or disables the customization and manages the toolbars.

tbcust.cpp enables automation (without OLE, drag and drop doesn't work !)


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


About the Author

Peppino Sbargzeguti
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralHelp, I want to create a vs2005 style's controlbar Pin
VS_Study7-Apr-08 5:09
memberVS_Study7-Apr-08 5:09 
GeneralBackgroud color problem Pin
wangdt5-Nov-04 12:28
memberwangdt5-Nov-04 12:28 
GeneralInvalid zip file Pin
Anonymous22-Oct-02 9:49
sussAnonymous22-Oct-02 9:49 
GeneralCToolBar Pin
Roberto Manes22-Oct-01 1:16
memberRoberto Manes22-Oct-01 1:16 

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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170813.1 | Last Updated 3 Aug 2001
Article Copyright 2001 by Peppino Sbargzeguti
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid