Export (0) Print
Expand All

IFolderView::SelectAndPositionItems method

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

Syntax


HRESULT SelectAndPositionItems(
  [in]  UINT cidl,
  [in]  PCUITEMID_CHILD_ARRAY *apidl,
  [in]  POINT *apt,
  [in]  DWORD dwFlags
);

Parameters

cidl [in]

Type: UINT

The number of items to select.

apidl [in]

Type: PCUITEMID_CHILD_ARRAY*

A pointer to an array of size cidl that contains the PIDLs of the items.

apt [in]

Type: POINT*

A pointer to an array of cidl structures containing the locations each corresponding element in apidl should be positioned.

dwFlags [in]

Type: DWORD

One of the _SVSIF constants that specifies 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, Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll

See also

IFolderView
IFolderView::SelectItem
SelectItem
FOLDERVIEWOPTIONS

 

 

Community Additions

ADD
Show:
© 2014 Microsoft