IShellFolderView interface
[IShellFolderView is no longer available for use as of Windows 7. Instead, use IFolderView2 and IFolderView.]
Exposes methods that manipulate Shell folder views.
Members
The IShellFolderView interface inherits from the IUnknown interface. IShellFolderView also has these types of members:
Methods
The IShellFolderView interface has these methods.
| Method | Description |
|---|---|
| AddObject |
Adds an item to the view. |
| ArrangeGrid |
Arranges moved icons so that they align to an invisible grid. |
| AutoArrange |
Arranges moved icons so that they tend toward the left side of the viewing area and displace other icons with which they come into contact. |
| GetArrangeParam |
Gets the arrangement parameter of the view, which is how the view has been sorted. |
| GetAutoArrange |
Gets the current state of the folder's Auto Arrange mode. |
| GetDragPoint |
Gets the point at which the current drag-and-drop operation was initiated. |
| GetDropPoint |
Gets the point at which the current drag-and-drop operation was terminated. |
| GetItemSpacing |
Gets the spacing for small and large view modes only. |
| GetObject |
Gets an item from the view. |
| GetObjectCount |
Gets the number of items in the folder view. |
| GetSelectedCount |
Gets the number of items in the view that are selected. |
| GetSelectedObjects |
Gets an array of the objects in the view that are selected and the number of those objects. |
| IsBkDropTarget |
Checks if the target of a drag-and-drop operation is the background of the view. |
| IsDropOnSource |
Checks whether the destination of the current drag-and-drop or cut-and-paste operation is the same as the source. |
| MoveIcons |
Not implemented. |
| QuerySupport |
Not implemented. |
| Rearrange |
Rearranges the items in a view according to a sorting rule. |
| RefreshObject |
Redraws the given item. |
| RemoveObject |
Removes an item from the view. |
| Select |
Selects and/or unselects items in the view. |
| SetAutomationObject |
Replaces the internal automation object of the IShellView. |
| SetCallback |
Replaces the IShellFolderViewCB that IShellView uses. |
| SetClipboard |
Performs a cut operation on the current selection. |
| SetItemPos |
Sets the position of the given item. |
| SetObjectCount |
Sets the number of items in the ListView control that the view contains. |
| SetPoints |
Copies the points at which the current selection is located into a data object. |
| SetRedraw |
Allows a view to be redrawn or prevents it from being redrawn. |
| UpdateObject |
Replaces an item in a view with another item. |
Remarks
IShellFolderView is supported by the IShellView object that is returned from SHCreateShellFolderViewEx. This object contains a ListView control and some of the methods on IShellFolderView directly manipulate this ListView control.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
End of client support |
Windows Vista |
|
End of server support |
Windows Server 2008 |
|
Header |
|