XLL+ Class Library

CXlToolbar::DeleteTool

Deletes the specified tool or separator from a toolbar

[C++]
static BOOL DeleteTool(
   const char* pszToolbarName,
   short int nPosition
);
static BOOL DeleteTool(
   short int nToolbarID,
   short int nPosition
);

Parameters

pszToolbarName

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.

nPosition

The index of the tool or separator within the toolbar.

nToolbarID

The unique identifier of the toolbar.

Return value

Returns TRUE if the tool was successfully deleted, and FALSE if the function failed.

Remarks

Deletes the specified tool from a toolbar.

Requirements

Header: xltoolbar.h

See Also

CXlToolbar Class | CXlToolbar Methods