IShellView2::SelectAndPositionItem method (shobjidl_core.h)
Selects and positions an item in a Shell View.
Syntax
HRESULT SelectAndPositionItem(
PCUITEMID_CHILD pidlItem,
UINT uFlags,
POINT *ppt
);
Parameters
pidlItem
Type: PCUITEMID_CHILD
A pointer to an ITEMIDLIST structure that uniquely identifies the item of interest.
uFlags
Type: UINT
One of the _SVSIF constants that specify the type of selection to apply.
ppt
Type: POINT*
A pointer to a POINT structure containing the new position.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
DLL | Shell32.dll (version 4.71 or later) |