IFolderView2::SetViewModeAndIconSize method

Sets and applies the view mode and image size.

Syntax


HRESULT SetViewModeAndIconSize(
  [in] FOLDERVIEWMODE uViewMode,
  [inint            iImageSize
);

Parameters

uViewMode [in]

Type: FOLDERVIEWMODE

The FOLDERVIEWMODE to be applied.

iImageSize [in]

Type: int

The size of the image in pixels.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If iImageSize is -1 then the current default icon size for the view mode is used.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Show: