win32gui.ModifyMenu

ModifyMenu(hMnu, uPosition, uFlags, uIDNewItem, newItem)

Changes an existing menu item. This function is used to specify the content, appearance, and behavior of the menu item.

Parameters

hMnu : int

handle to menu

uPosition : int

menu item to modify

uFlags : int

options

uIDNewItem : int

identifier, menu, or submenu

newItem : string

menu item content