int pascal GetMenuItemID(HMENU hMenu, int pos) This function returns the id of a menu item contained within a menu. This id is used by several of the menu functions. Parameters hMenu is the handle of the menu to query. pos is the 0-based index of the item. Returns The id of the menu item.