win32gui.GetMenuItemInfo

GetMenuItemInfo(hMenu, uItem, fByPosition, menuItem)

Gets menu information

Parameters

hMenu : int

Handle to the menu

uItem : int

The menu item identifier or the menu item position.

fByPosition : int

Boolean value of True if uItem is set to a menu item position. This parameter is set to False if uItem is set to a menu item identifier.

menuItem : buffer

A string or buffer that will receive the information in the format of a MENUITEMINFO structure.