XLL+ Class Library

Toolbar3 Sample

Remarks

This project demonstrates how to use the CXlToolbar class to add a toolbar to Excel's main window, and how to dynamically enable and press the buttons. The bitmaps for the toolbar's buttons are built into the add-in as resources.

Buttons 1 and 2 enable and disable button 3. Button 4 can be pressed down and up.

Functions used

CXlToolbar
CXlToolbar::AddToolbar
CXlToolbar::ShowToolbar
CXlToolbar::DeleteToolbar
CXlToolbar::AddTool
CXlToolbar::SetToolBitmap
CXlToolbar::EnableTool
CXlToolbar::PressTool
CXllApp::OnXllOpen
CXllApp::OnXllClose

Project files

If you are using MS Developer Studio 6, then you should open the project file Toolbar3.dsp.

If you are using MS Visual Studio .NET 2002, then you should open the solution file Toolbar3.sln or the project file Toolbar3.vcproj.

If you are using MS Visual Studio .NET 2003, then you should open the solution file Toolbar371.sln or the project file Toolbar371.vcproj.

If you are using MS Visual Studio 2005, then you should open the solution file Toolbar38.sln or the project file Toolbar38.vcproj.

See Also

List of Sample Projects | Samples and Walkthroughs | Simple Toolbar | Simple Toolbar using resources