WebViewFolderContents.PopupItemMenu method
Creates a shortcut menu for the specified item and returns the selected command string.
Syntax
retVal = WebViewFolderContents.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*
When this method returns, contains the command string.
Examples
The following example shows the proper use of PopupItemMenu for JScript embedded in HTML.
<html>
<head>
...
<script language="JavaScript">
function fnWebViewFolderContentsPopupItemMenuJ()
{
var objFolderItem;
objFolderItem = FileList.FocusedItem;
if (objFolderItem != null)
{
var szCommand;
szCommand = FileList.PopupItemMenu(objFolderItem);
}
}
</script>
</head>
<body>
...
<object id=FileList classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2" tabIndex=1>
</body>
</html>
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
IDL |
|
DLL |
|