Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets a FolderItems object that represents all of the selected items in the view.
retVal = ShellFolderView.SelectedItems()
This method has no parameters.
Type: FolderItems**
An object reference to the FolderItems object.
SelectedItems can only be called on the local system. It will not work when run on a webpage over HTTP or UNC.
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>
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 |
|