ATTR_FIRST_ITEM_ID

Type: Menu attribute
Description: The ID of the first menu item in the menu.

The menu attribute ATTR_FIRST_ITEM_ID returns the ID of the first menu item in the menu. When you call GetMenuBarAttribute on the first menu item ID, ATTR_NEXT_ITEM_ID returns the ID of the next menu item in the menu. On the last menu item, ATTR_NEXT_ITEM_ID returns zero. Use the menu attribute ATTR_NUM_MENU_ITEMS to get the total number of menu items in a menu.

Menu Objects: Menus, submenus.
Restrictions: Not settable.
Data Type: integer