Skip to content

Latest commit

 

History

History
91 lines (60 loc) · 2.31 KB

webviewfoldercontents-focuseditem.md

File metadata and controls

91 lines (60 loc) · 2.31 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
WebViewFolderContents.FocusedItem property (Shldisp.h)
WebViewFolderContents.FocusedItem property - Gets a FolderItem object that represents the item that has the input focus.
84cf92ac-dadb-4741-8383-a8ae1d35d4e0
FocusedItem property Legacy Windows Environment Features
FocusedItem property Legacy Windows Environment Features , WebViewFolderContents object
WebViewFolderContents object Legacy Windows Environment Features , FocusedItem property
apiref
WebViewFolderContents.FocusedItem
Shell32.dll
COM
reference
05/31/2018

WebViewFolderContents.FocusedItem property

Gets a FolderItem object that represents the item that has the input focus.

This property is read-only.

Syntax

objFocusedItem = WebViewFolderContents.FocusedItem

Property value

A variable of type IDispatch that receives the focused item object.

Examples

The following example shows the proper usage of this property in JScript embedded in HTML.

<html>
<head>

...

<script language="JavaScript">
    function fnWebViewFolderContentsFocusedItemJ()
    {
        var objFolderItem;

        objFolderItem = FileList.FocusedItem;
        if (objFolderItem != null)
        {
            alert(objFolderItem.Name);
        }
    }
</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
Shldisp.h
IDL
Shldisp.idl
DLL
Shell32.dll (version 4.71 or later)