Home COM GDI+ WebBrowser Data Access

IFolderView Interface

 

IID_IFolderView

{CDE725B0-CCC9-4519-917E-325D72FAB4CE}

 

 

The IFolderView interface includes methods which retrieve information about a folder's display options, select specified items in that folder, and set the folder's view mode.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IFolderView Methods

Description

GetCurrentViewMode

Retrieves an address containing a value representing the folder's current view mode.

SetCurrentViewMode

Sets the selected folder's view mode.

GetFolder

Retrieves the folder object.

Item

Retrieves the identifier of a specific item in the folder view, by index.

ItemCount

Retrieves a pointer to the number of items in the folder.

Items

Retrieves the address of an enumeration object based on the collection of items in the folder view.

GetSelectionMarkedItem

Retrieves the index of an item in the folder's view which has been marked by using the SVSI_SELECTIONMARK in IFolderView::SelectItem.

GetFocusedItem

Retrieves the index of the item that currently has focus in the folder's view.

GetItemPosition

Retrieves the position of an item in the folder's view.

GetSpacing

Retrieves a POINT structure containing the width (x) and height (y) dimensions, including the surrounding white space, of an item.

GetDefaultSpacing

Retrieves a pointer to a POINT structure containing the default width (x) and height (y) measurements of an item, including the surrounding white space.

GetAutoArrange

Retrieves the current state of the folder's Auto Arrange mode.

SelectItem

Selects an item in the folder's view.

SelectAndPositionItems

Allows the selection and positioning of items visible in the folder's view.

 

GetCurrentViewMode

 

FUNCTION IFolderView_GetCurrentViewMode ( _

  BYVAL pthis AS DWORD PTR _

, BYREF pViewMode AS DWORD _

  ) AS LONG

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

END FUNCTION

 

 

SetCurrentViewMode

 

FUNCTION IFolderView_SetCurrentViewMode ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL pViewMode AS DWORD _

  ) AS LONG

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

END FUNCTION

 

 

GetFolder

 

FUNCTION IFolderView_GetFolder ( _

  BYVAL pthis AS DWORD PTR _

, BYREF riid AS GUID _

, BYREF ppv AS DWORD _

  ) AS LONG

 LOCAL HRESULT AS LONG
 CALL DWORD @@pthis[5] USING IFolderView_GetFolder (pthis, riid, ppv) TO HRESULT
 FUNCTION = HRESULT

END FUNCTION

 

 

Item

 

FUNCTION IFolderView_Item ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL iItemIndex AS LONG _

, BYREF ppidl AS DWORD _

  ) AS LONG

 LOCAL HRESULT AS LONG
 CALL DWORD @@pthis[6] USING IFolderView_Item (pthis, iItemIndex, ppidl) TO HRESULT
 FUNCTION = HRESULT

END FUNCTION

 

 

ItemCount

 

FUNCTION IFolderView_ItemCount ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL uFlags AS DWORD _

, BYREF pcItems AS LONG _

  ) AS LONG

 LOCAL HRESULT AS LONG
 CALL DWORD @@pthis[7] USING IFolderView_ItemCount (pthis, uFlags, pcItems) TO HRESULT
 FUNCTION = HRESULT

END FUNCTION

 

 

Items

 

FUNCTION IFolderView_Items ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL uFlags AS DWORD _

, BYREF riid AS GUID _

, BYREF ppv AS DWORD _

  ) AS LONG

 LOCAL HRESULT AS LONG
 CALL DWORD @@pthis[8] USING IFolderView_Items (pthis, uFlags, riid, ppv) TO HRESULT
 FUNCTION = HRESULT

END FUNCTION

 

 

GetSelectionMarkedItem

 

FUNCTION IFolderView_GetSelectionMarkedItem ( _

  BYVAL pthis AS DWORD PTR _

, BYREF piItem AS DWORD _

  ) AS LONG

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

END FUNCTION

 

 

GetFocusedItem

 

FUNCTION IFolderView_GetFocusedItem ( _

  BYVAL pthis AS DWORD PTR _

, BYREF piItem AS DWORD _

  ) AS LONG

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

END FUNCTION

 

 

GetItemPosition

 

FUNCTION IFolderView_GetItemPosition ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL pidl AS DWORD _

, BYREF ppt AS POINTAPI _

  ) AS LONG

 LOCAL HRESULT AS LONG
 CALL DWORD @@pthis[11] USING IFolderView_GetItemPosition (pthis, pidl, ppt) TO HRESULT
 FUNCTION = HRESULT

END FUNCTION

 

 

GetSpacing

 

FUNCTION IFolderView_GetSpacing ( _

  BYVAL pthis AS DWORD PTR _

, BYREF ppt AS POINTAPI _

  ) AS LONG

 LOCAL HRESULT AS LONG
 CALL DWORD @@pthis[12] USING IFolderView_GetSpacing (pthis, ppt) TO HRESULT
 FUNCTION = HRESULT

END FUNCTION

 

 

GetDefaultSpacing

 

FUNCTION IFolderView_GetDefaultSpacing ( _

  BYVAL pthis AS DWORD PTR _

, BYREF ppt AS POINTAPI _

  ) AS LONG

 LOCAL HRESULT AS LONG
 CALL DWORD @@pthis[13] USING IFolderView_GetDefaultSpacing (pthis, ppt) TO HRESULT
 FUNCTION = HRESULT

END FUNCTION

 

 

GetAutoArrange

 

FUNCTION IFolderView_GetAutoArrange ( _

  BYVAL pthis AS DWORD PTR _

  ) AS LONG

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

END FUNCTION

 

 

SelectItem

 

FUNCTION IFolderView_SelectItem ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL iItem AS LONG _

, BYVAL dwFlags AS DWORD _

  ) AS LONG

 LOCAL HRESULT AS LONG
 CALL DWORD @@pthis[15] USING IFolderView_SelectItem (pthis, iItem, dwFlags) TO HRESULT
 FUNCTION = HRESULT

END FUNCTION

 

 

SelectAndPositionItems

 

FUNCTION IFolderView_SelectAndPositionItems ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL cidl AS DWORD _

, BYVAL apidl AS DWORD _

, BYREF apt AS POINTAPI _

, BYVAL dwFlags AS DWORD _

  ) AS LONG

 LOCAL HRESULT AS LONG
 CALL DWORD @@pthis[16] USING IFolderView_SelectAndPositionItems (pthis, cidl, apidl, apt, dwFlags) TO HRESULT
 FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Monday, 03 April 2006 20:40:44 +0200