XLL+ Class Library (6.3)

Dialogs Sample

Uses the CXlDialog class to display native Excel dialogs

Remarks

This project contains a number of dialog classes, descended from CXlDialog, which demonstrate the use of Excel native dialogs.

It also makes use of the CXlMenu class to install a user-defined menu in Excel's main application menu bar.

Classes and functions used

CXlDialog | CXlDialog::EndDialog | CXlDialog::SetFocus | CXlDialog::Show | CXlDialog::Add | CXlControl | CXlControl::SetEnabled | CXlControl::GetValue | CXlControl::SetValue | CXlControl::GetText | CXlControl::SetText | CXlControlGroupBox | CXlControlOptionGroup | CXlControlOption | CXlControlStatic | CXlControlNumberEdit | CXlControlOK | CXlControlCancel | CXlControlTextEdit | CXlControlRefEdit | CXlControlFormulaEdit | CXlMenu | CXllApp::OnXllOpenEx | CXllApp::OnXllClose

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 Dialogs.sln or the project file Dialogs.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 Dialogs.help.xml and Dialogs.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