PyCMenu Object

A windows menu. Encapsulates an MFC CMenu class

Methods

AppendMenu
Appends a new item to the end of a menu. Python can specify the state of the menu item by setting values in nFlags. 

DeleteMenu
Deletes the specified menu item. 

EnableMenuItem
Enables, disables, or dims a menu item. 

GetHandle
Returns the menu object's underlying hMenu. 

GetMenuItemCount
Determines the number of items in a menu. 

GetMenuItemID
Returns the item ID for the specified item in a pop-up menu. 

GetMenuString
Returns the string for a specified menu item. 

GetSubMenu
Returns a submenu. 

InsertMenu
Inserts an item into a menu. 

ModifyMenu
Modify an item in a menu. 

TrackPopupMenu
Creates a popup menu anywhere on the screen.