win32gui.GetMenuItemID

int = GetMenuItemID(hMenu, nPos )

Retrieves the menu item identifier of a menu item located at the specified position in a menu.

Parameters

hMenu : int

handle to menu

nPos : int

position of menu item