Adds a new tool button to a toolbar
static BOOL AddTool( const TCHAR* pszToolbarName, short int nPosition, const TCHAR* pszMacro, const TCHAR* pszStatusbarText, short int nToolID = 220, bool bDown = false, bool bEnabled = false, const TCHAR* pszHelpTopic = _T(""), const TCHAR* pszTooltipText = _T("") ); static BOOL AddTool( short int nToolbarID, short int nPosition, const TCHAR* pszMacro, const TCHAR* pszStatusbarText, short int nToolID = 220, bool bDown = false, bool bEnabled = false, const TCHAR* pszHelpTopic = _T(""), const TCHAR* pszTooltipText = _T("") ); |
The name of the toolbar.
This argument can contain a resource ID string. This will be replaced at run-time by a string loaded from the resource file in the current preferred language, as returned by XllGetStringLanguageID.
The desired index of the tool button within the toolbar.
The name of the macro function which will be run when the button is pushed.
The text which will appear in the status bar when the toolbar is selected. This is ignored by most versions of Excel.
This argument can contain a resource ID string. This will be replaced at run-time by a string loaded from the resource file in the current preferred language, as returned by XllGetStringLanguageID.
The index of the tool button's bitmap within Excel's list of built-in bitmaps.
Sets whether the tool is initially shown in the down state.
Sets whether the tool is initially enabled.
The name of a help topic in the add-in's current help file.
The text which will appear when the mouse hovers over the button. Note that this text will only be visible in Excel if "Show ScreenTips on toolbars" is enabled in the "Options" tab of the Excel Tools/Customize dialog.
If omitted, then pszStatusBarText will be used.
This argument can contain a resource ID string. This will be replaced at run-time by a string loaded from the resource file in the current preferred language, as returned by XllGetStringLanguageID.
The unique identifier of the toolbar.
Adds a new tool button to a toolbar.
Header: xltoolbar.h