get_menu_item_count


int get_menu_item_count(handle menu)

This function returns the number of items in a menu.

Parameters

handle menu

The handle of the menu.

Return

int

The number of items in the menu or -1 if an error occurred.