SelectItem

IFolderView::SelectItem method

Selects an item in the folder's view.

Syntax


HRESULT SelectItem(
  [inint   iItem,
  [in] DWORD dwFlags
);

Parameters

iItem [in]

Type: int

The index of the item to select in the folder's view.

dwFlags [in]

Type: DWORD

One of the _SVSIF constants that specify the type of selection to apply.

Return value

Type: HRESULT

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

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll

See also

IFolderView
IFolderView::GetSelectionMarkedItem
IFolderView::SelectAndPositionItems
SelectItem

 

 

Show:
© 2016 Microsoft