Description of the interface
-
Adds options to a context menu
-
Executes a context menu option
-
Retrieves verb or help text for a context menu option
PyIContextMenu.GetCommandString
str = GetCommandString(idCmd, uType
, cchMax
) Retrieves verb or help text for a context menu option
-
idCmd : int
Id of the command
-
uType : int
One of the shellcon.GCS_* constants
-
cchMax=2048 : int
Size of buffer to create for returned string
PyIContextMenu.InvokeCommand
InvokeCommand(pici) Executes a context menu option
-
pici : PyCMINVOKECOMMANDINFO
Tuple of parameters representing a CMINVOKECOMMANDINFO struct
PyIContextMenu.QueryContextMenu
int = QueryContextMenu(hmenu, indexMenu
, idCmdFirst
, idCmdLast
, uFlags
) Adds options to a context menu
-
hmenu : PyHANDLE
Handle to menu to which items should be added
-
indexMenu : int
Zero-based index at which to add first item
-
idCmdFirst : int
Minimum menu item Id
-
idCmdLast : int
Max menu item Id
-
uFlags : int
Combination of shellcon.CMF_* flags, can be 0