LabWindows/CVI

Toolbar_GetNumItems

int Toolbar_GetNumItems (ToolbarType toolbar, int *count);

Purpose

Determines the number of items on the toolbar. This number includes all of the items on the toolbar, including separators, move handles, active items, and inactive items.

Parameters

Input
Name Type Description
toolbar ToolbarType The specifier for the toolbar.

Obtain this handle from the Toolbar_New or Toolbar_Duplicate functions.
Output
Name Type Description
count int Returns the total number of items on the toolbar.

Return Value

Name Type Description
status int Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Additional Information

Library: Toolbar

Include file: custctrl\toolbar.h

LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later