IFolderView::SetCurrentViewMode method (shobjidl_core.h)
Sets the selected folder's view mode.
Syntax
HRESULT SetCurrentViewMode(
[in] UINT ViewMode
);
Parameters
[in] ViewMode
Type: UINT
One of the following values from the FOLDERVIEWMODE enumeration.
FVM_ICON
Medium icons
FVM_SMALLICON
Small icons
FVM_LIST
List view without details. This view also uses small icons, but they cannot be rearranged as they can be when using FVM_SMALLICON.
FVM_DETAILS
Show details (size, type, last modification date)
FVM_THUMBNAIL
Thumbnail view
FVM_TILE
Large icons
FVM_THUMBSTRIP
Filmstrip view
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
DLL | Shell32.dll |