IFolderView2::GetVisibleItem method (shobjidl_core.h)

Gets the next visible item in relation to a given index in the view.

Syntax

HRESULT GetVisibleItem(
  [in]  int  iStart,
  [in]  BOOL fPrevious,
  [out] int  *piItem
);

Parameters

[in] iStart

Type: int

The zero-based position at which to start searching for a visible item.

[in] fPrevious

Type: BOOL

TRUE to find the first visible item before iStart. FALSE to find the first visible item after iStart.

[out] piItem

Type: int*

When this method returns, contains a pointer to a value that receives the index of the visible item in the view.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK
Item retrieved.
S_FALSE
Item not found. Note that this is a success code.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)