Click here to Skip to main content
Click here to Skip to main content

ToolBar Customization

By , 2 Aug 2001
 

Sample Image - tbcust.jpg

Introduction

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 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 !)

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

About the Author

Peppino Sbargzeguti
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralHelp, I want to create a vs2005 style's controlbarmemberVS_Study7 Apr '08 - 5:09 
Recently , I want to create a vs2005 style's controlbar , which likes a controlbar alige left within a toolbar , how I can create that controlbar , Thanks very much !
GeneralBackgroud color problemmemberwangdt5 Nov '04 - 12:28 
After I drag the button to the toolbar, the backgroud color of button becomes dark, not the backgroud color of toolbar. Anybody know why and how to correct this? Thanks. I am using VC++6 and XP.
GeneralInvalid zip filesussAnonymous22 Oct '02 - 9:49 
Whenever I try to download and save or open the zip file for this sample, I get a message saying that it is not a valid zip file. Perhaps the author can post it again.
GeneralCToolBarmemberRoberto Manes22 Oct '01 - 1:16 
I'd like to know the way to modify the state of a button into a CToolBar when it has been set as a check button. I know that it is possible to do it by means the ON_UPDATE_COMMAND_UI message handler, but I would like to check it on and off whenever I want. Thanks in advance   Roberto manes

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

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