ShellFolderView.PopupItemMenu method

Creates a shortcut menu for the specified item and returns the selected command string.

Syntax

retVal = ShellFolderView.PopupItemMenu(
  vItem,
  [ vx ],
  [ vy ]
)

Parameters

vItem [in]

Type: Variant

The FolderItem object for which the shortcut menu will be created.

vx [in, optional]

Type: Variant

The horizontal position of the menu, in screen coordinates.

vy [in, optional]

Type: Variant

The vertical position of the menu, in screen coordinates.

Return value

Type: BSTR*

The String that receives the command string.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Shldisp.h
IDL
Shldisp.idl
DLL
Shell32.dll (version 4.71 or later)