XLL+ Class Library (7.0)

Ribbon Demo Sample - RibbonDemo

Adds and manages controls in the Office Ribbon


This project demonstrates how to add controls to the Office Ribbon and how to control their appearance and behavior from an OnRibbonEvent event handler.

Classes and functions used

CXllApp | CXllApp::OnRibbonEvent | CXllApp::InvalidateRibbon | CRibbonEvtParams | CRibbonEvtParams::GetCallback | CRibbonEvtParams::GetId | CRibbonEvtParams::GetPressed | CRibbonEvtParams::GetIndex

Sample project

Each sample project is located in a sub-directory of the Samples directory of the XLL+ installation. To use the sample project, open the solution file RibbonDemo.sln or the project file RibbonDemo.vcproj.

You can enable debugging under Excel by using the Setup Debugging command in the XLL+ ToolWindow.

When delivered, the help files are excluded from the build. You can enable the help build by selecting the files RibbonDemo.help.xml and RibbonDemo.chm in the Solution Explorer, and using the right-click menu to view Properties. Select the page "Configuration Properties/General" and set the "Excluded from build" property to "No". See Generating help in the User Guide for more information.

See Also

List of Sample Projects | The Ribbon (User Guide) | Ribbon Reference