![]() | Type | Description | ||
| Folder as ExShellFolder | A Folder object whose context menu is displayed | |||
| Items as String | A string expression that specifies the context menu items to display. | |||
| Separator as String | A string expression that contains the separator text to use in the Items parameter. |
Fires when the context menu is about to display. This allows you to customize the control context menu. You can then react to the context menu through the BeforeShellMenuCommand and AfterShellMenuCommand menus.
The following sample code adds two new menu items to the folder context menu.
Private Sub ExFolderView1_QueryContextMenu(ByVal Folder As EXFOLDERVIEWLibCtl.IExShellFolder, Items As String, Separator As String)
Items = Separator & "New Item1" & Separator & "New Item2"
End Sub