Home COM GDI+ WebBrowser Data Access

ShellFolderView Object

 

PROGID

"Shell.FolderView.1"

CLSID_ShellFolderView

{62112AA1-EBE4-11CF-A5FB-0020AFE7292D}

IID_IShellFolderViewDual

{E7A1AF80-4D96-11CF-960C-0080C7F4EE85}

IID_IShellFolderViewDual2

{31C147B6-0ADE-4A3C-B514-DDF932EF6D17}

 

 

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

 

The WebViewFolderContents object is implemented by the Shell for use inside a WebView. WebViewFolderContents automatically initializes itself to WebView's current folder. It creates a Shell folder view that displays the contents of the folder in one of five formats: Small Icon, Large Icon, List, Details, or Thumbnail. It is not valid outside of a WebView.

 

The methods and properties exposed by WebViewFolderContents are identical to those of the ShellFolderView object.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IDispatch Methods

Description

GetTypeInfoCount

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

GetTypeInfo

Gets the type information for an object.

GetIDsOfNames

Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs.

Invoke

Provides access to properties and methods exposed by an object.

IShellFolderViewDual Methods and Properties

Description

Application

Contains the object's Application object.

Parent

Not currently implemented.

Folder

Contains a Folder object that represents the view.

SelectedItems

Retrieves a FolderItems object that represents all of the selected items in the view.

FocusedItem

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

SelectItem

Sets the selection state of an item in the view.

PopupItemMenu

Creates a shortcut menu for the specified item and returns the selected command string.

Script

Contains the scripting object for the view.

ViewOptions

Contains a set of flags that indicate the current options of the view.

IShellFolderViewDual2 Methods and Properties

Description

CurrentViewMode

Undocumented.

SelectItemRelative

Undocumented.

 

Application

 

FUNCTION IShellFolderViewDual_get_Application ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppid AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[7] USING IShellFolderViewDual_get_Application (pthis, ppid) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

Parent

 

FUNCTION IShellFolderViewDual_get_Parent ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppid AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[8] USING IShellFolderViewDual_get_Parent (pthis, ppid) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Folder

 

FUNCTION IShellFolderViewDual_get_Folder ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppid AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[9] USING IShellFolderViewDual_get_Folder (pthis, ppid) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

SelectedItems

 

FUNCTION IShellFolderViewDual_SelectedItems ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppid AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[10] USING IShellFolderViewDual_SelectedItems (pthis, ppid) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

FocusedItem

 

FUNCTION IShellFolderViewDual_get_FocusedItem ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppid AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[11] USING IShellFolderViewDual_get_FocusedItem (pthis, ppid) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

SelectItem

 

FUNCTION IShellFolderViewDual_SelectItem ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pvfi AS VARIANT _
, BYVAL dwFlags AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[12] USING IShellFolderViewDual_SelectItem (pthis, pvfi, dwFlags) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

PopupItemMenu

 

FUNCTION IShellFolderViewDual_PopupItemMenu ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pfi AS DWORD _
, BYVAL vx AS VARIANT _
, BYVAL vy AS VARIANT _
, BYREF pbs AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[13] USING IShellFolderViewDual_PopupItemMenu (pthis, pfi, vx, vy, pbs) TO HRESULT
  FUNCTION = HRESULT
  pbs = ACODE$(pbs)

END FUNCTION

 

 

Script

 

FUNCTION IShellFolderViewDual_get_Script ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppDisp AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[14] USING IShellFolderViewDual_get_Script (pthis, ppDisp) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

ViewOptions

 

FUNCTION IShellFolderViewDual_get_ViewOptions ( _
  BYVAL pthis AS DWORD PTR _
, BYREF plViewOptions AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[15] USING IShellFolderViewDual_get_ViewOptions (pthis, plViewOptions) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

CurrentViewMode

 

FUNCTION IShellFolderViewDual2_get_CurrentViewMode ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pViewMode AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[16] USING IShellFolderViewDual2_get_CurrentViewMode (pthis, pViewMode) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

FUNCTION IShellFolderViewDual2_put_CurrentViewMode ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pViewMode AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[17] USING IShellFolderViewDual2_put_CurrentViewMode (pthis, pViewMode) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

SelectItemRelative

 

FUNCTION IShellFolderViewDual2_SelectItemRelative ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL iRelative AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[18] USING IShellFolderViewDual2_SelectItemRelative (pthis, iRelative) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

Page last updated on Wednesday, 15 February 2006 23:02:35 +0100