Property | Type | Description | |
---|---|---|---|
GenerateExplorerBackgroundMenuItems | void | ||
GenerateMenuItem | void | ||
GenerateMenuItemExecutable | void | ||
GenerateSeparator | void | ||
GenerateSubmenu | void | ||
GetNewContextMenuItems | List |
||
Initialize | void | ||
InvokeCommand | void | ||
RemoveDefaultExplorerItems | void | ||
RemoveDuplicatedSeparators | void | ||
RemoveShellMenuItems | void | ||
TagManagedMenuItems | void |
Method | Description | |
---|---|---|
GetNewContextMenu ( IListItemEx item, |
||
GetOpenWithContextMenu ( IListItemEx itemArray, |
||
HandleMenuMessage ( |
Handles context menu messages when the ShellContextMenu is displayed on a Form's main menu bar. To display a shell context menu in a Form's main menu, call the Populate method to populate the menu with the shell item's menu items. In addition, you must intercept a number of special messages that will be sent to the menu's parent form. To do this, you must override Form.WndProc like so: protected override void WndProc(ref Message m) { if ((m_ContextMenu == null) || (!m_ContextMenu.HandleMenuMessage(ref m))) { base.WndProc(ref m); } } Where m_ContextMenu is the ShellContextMenu being shown. |
|
Populate ( |
Populates a Menu with the context menu items for a shell item. If this method is being used to populate a Form's main menu then you need to call HandleMenuMessage in the Form's message handler. |
|
ShellContextMenu ( IListItemEx items, SVGIO svgio = SVGIO.SVGIO_SELECTION, |
Initializes a new instance of the ShellContextMenu class.
|
|
ShellContextMenu ( |
Initializes a new instance of the ShellContextMenu class.
|
|
ShellContextMenu ( |
Initializes a new instance of the ShellContextMenu class.
|
|
ShowContextMenu ( Point pos, int type, System.Boolean shouldShow = true ) : int | ||
ShowContextMenu ( |
Shows a context menu for a shell item.
|
Method | Description | |
---|---|---|
GenerateExplorerBackgroundMenuItems ( |
||
GenerateMenuItem ( |
||
GenerateMenuItemExecutable ( |
||
GenerateSeparator ( |
||
GenerateSubmenu ( |
||
GetNewContextMenuItems ( ) : List |
||
Initialize ( IListItemEx items ) : void | ||
InvokeCommand ( |
||
RemoveDefaultExplorerItems ( |
||
RemoveDuplicatedSeparators ( |
||
RemoveShellMenuItems ( |
||
TagManagedMenuItems ( |
public GetNewContextMenu ( IListItemEx item, |
||
item | IListItemEx | |
iContextMenuPtr | ||
iContextMenu | IContextMenu | |
return | bool |
public GetOpenWithContextMenu ( IListItemEx itemArray, |
||
itemArray | IListItemEx | |
iContextMenuPtr | ||
iContextMenu | IContextMenu | |
return | bool |
public HandleMenuMessage ( |
||
m | /// The message to handle. /// | |
return | bool |
public Populate ( |
||
menu | The menu to populate. | |
additionalFlags | CMF | |
return | void |
public ShellContextMenu ( IListItemEx items, SVGIO svgio = SVGIO.SVGIO_SELECTION, |
||
items | IListItemEx | /// The items to which the context menu should refer. /// |
svgio | SVGIO | |
view | The ShellView the ContextMenu is associated with | |
return | System |
public ShellContextMenu ( |
||
shellView | The |
|
item | IListItemEx | /// The item to which the context menu should refer. /// |
return | System |
public ShellContextMenu ( |
||
shellView | The ShellView the ContextMenu is associated with | |
Use_GetNewContextMenu | bool | |
return | System |
public ShowContextMenu ( Point pos, int type, System.Boolean shouldShow = true ) : int | ||
pos | Point | |
type | int | |
shouldShow | System.Boolean | |
return | int |
public ShowContextMenu ( |
||
control | /// The parent control. /// | |
pos | Point |
/// The position on |
aditionalFlags | CMF | |
IsOnEmpty | bool | |
return | void |