Skip to content

Latest commit

 

History

History
92 lines (46 loc) · 1.58 KB

PyIContextMenu.md

File metadata and controls

92 lines (46 loc) · 1.58 KB

PyIContextMenu

PyIContextMenu Object

Description of the interface

Methods

PyIContextMenu.GetCommandString

str = GetCommandString(idCmd, uType

, cchMax

) Retrieves verb or help text for a context menu option

Parameters

  • 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

Parameters

PyIContextMenu.QueryContextMenu

int = QueryContextMenu(hmenu, indexMenu

, idCmdFirst

, idCmdLast

, uFlags

) Adds options to a context menu

Parameters

  • 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