IShellFolderViewDual2::SelectItemRelative method (shldisp.h)
Selects an item relative to the current item.
Syntax
HRESULT SelectItemRelative(
[in] int iRelative
);
Parameters
[in] iRelative
Type: int
The offset of the item to be selected in relation to the current item.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The current item is defined as the item in the view with the SVSI_SELECTIONMARK state. If there is no item with SVSI_SELECTIONMARK, the method returns S_FALSE and does nothing.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shldisp.h |