The Wayback Machine - https://web.archive.org/web/20120131133041/http://www.codeguru.com:80/cpp/controls/toolbar/

    Toolbar

    The Smart Pointer That Makes Your C++ Applications Safer - std::unique_ptr

    Using shared_ptr instead of raw pointers helps you avoid the common pitfalls associated with raw pointers but in some cases, its performance isn't satisfactory. Unique_ptr is a new C++0x smart pointer that is compact, fast and fully compatible with the standard library. Find out how to use unique_ptr to make your code safer without sacrificing performance.

    Tip: Painting the CToolbar's Parent Window (AfxControlBar)

    Learn how to paint the background color (paint entire window) of CToolbarby using the "AfxControBar".

    [Updated] Tab Bar Control

    Learn about the Tab Bar control class that is based on CControlBar and the Windows common tab control; it also uses my wrapper class CTabBarCtrl.

    Locking Rebars and Toolbars

    Learn how to lock the toolbars (within a rebar or not) like Windows Explorer under Windows 2000/XP.

    [Updated] Building and Using a Toolbar Header

    How to implement a header for your SDI/MDI project.

    Make a Customized ToolBar Dialog Work in MFC (VC6)

    Simply by adding some code to your MFC frame windows, you can make your toolbar customize dialog works.

    Simple IE-like Menu and Toolbar

    A simple interface based on Internet Explorer that implements features introduced in Windows XP and remains compatible with all OS versions since Windows 98. Includes support for alpha channel images under Windows XP, both 3D and flat (XP) style, and rebar menu with full mouse and keyboard support. (The demo project and source code were updated.)

    Putting a Docking Toolbar in a Dialog App

    Getting a docking toolbar in a dialog is not easy. I do a small trick -- I make a dialog behave like a toolbar, thus making a lot of GUI gimmicks easy to incorporate.

    Creating a Tabbed Tool Bar

    Do you have a lot of tools (icons) in your toolbar? Learn to organize them with a tab dialog!

    Flat Toolbar (requires IE3+)

    Flat Toolbar (requires IE3+)

    Toolbar Button Events and Disabling in Visual C++ 7

    How to hook up the normal click events for toolbars in VC7, and how to disable buttons programmatically, depending on context.

    Taskbar Sorter Utility

    This utility allows you to change the order of items on your taskbar, by dragging them into position in a list.

    Adding Toolbar button in CFileDialog

    This article will show you how to add a Toolbar button in CFileDialog's Toolbar.

    Adding Text to a Docking Toolbar

    This article demonstrates an easy way to add text to a docking tool bar.

    Code to Dynamically Redock a Toolbar at Runtime

    Snippet that allows you to do such things as giving the end-user a "Reset all Toolbars" function

    Full-Featured 24-bit Color Toolbar

    Enable you to attach 24-bit images to the standard MFC toolbar that handles both disabled and hot buttons as well as transparent button backgrounds.

    Placing Logo on the Top DockBar of the Frame Window

    Great class that enables you to place your logo on the main dockbar of your SDI/MDI applications!

    Hiding the Flat Toolbar Separators

    Hiding the Flat Toolbar Separators

    Switching Toolbars in MDI

    New article with source

    CDialogBarEx : A Dialog bar with initialization

    New article and source

    System menu fix for floating toolbar

    New article and source

    A Fix for CToolBar with IE4

    A Fix for CToolBar with IE4

    Toolbars with Tooltips in a CFormView derived class

    New article and source.

    Adding a drop arrow to a toolbar button

    Updated Article