ShellFolderView Object

The ShellFolderView object represents the objects in a view. There are properties and methods used to obtain information about the contents of the view.

Properties


PropertyDescription
Application Contains the object's Application object. Read-only.
FocusedItem Contains a FolderItem object that represents the item that has the input focus. Read-only.
Folder Contains a Folder object that represents the view. Read-only.
Parent Contains the object's parent object. Read-only.
Script Contains the scripting object for the view. Read-only.
ViewOptions Contains a set of ShellFolderViewOptions flags that indicate the current options of the view. Read only.

Methods


MethodDescription
PopupItemMenu Creates a context menu for an item and returns the selected command string.
SelectedItems Retrieves a FolderItems object that represents all of the selected items in the view.
SelectItem Sets the selection state of an item in the view.

Events


EventDescription
SelectionChanged The selection state of any item or items in the view has changed

Constants


ConstantDescription
ShellFolderViewOptions Specifies the view options returned by the ViewOptions property.

Requirements

  Version 4.71 and later of Shell32.dll

  Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 4.0 or later).
  Windows 95/98: Requires Windows 98 (or Windows 95 with Internet Explorer 4.0 or later).
  Header: Declared in shldisp.h.