ShellFolderView.SelectedItems method
Gets a FolderItems object that represents all of the selected items in the view.
Syntax
retVal = ShellFolderView.SelectedItems()
Parameters
This method has no parameters.
Return value
Type: FolderItems**
An object reference to the FolderItems object.
Remarks
SelectedItems can only be called on the local system. It will not work when run on a webpage over HTTP or UNC.
Examples
The following example shows the proper use of this method in JScript embedded in HTML.
<html>
<head>
<title></title>
<script language="JavaScript">
function fnShellFolderViewSelectedItemsJ()
{
var objFolderItems;
objFolderItems = WebOC.Document.SelectedItems();
if (objFolderItems != null)
{
alert("Got FolderItems object.");
}
}
function fnLoad()
{
var webOC;
webOC = document.all("WebOC");
webOC.Navigate("C:\\");
}
</script>
</head>
<body onload="fnLoad()">
<object id="WebOC"
classid="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"
width=400
height=400>
</object>
<br><br>
<INPUT id=SelectedItems
type=button
value=SelectedItems
name=SelectedItems
onclick="fnShellFolderViewSelectedItemsJ()">
</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 |
|