Contents Index Topic Contents | ||
Previous Topic: IShellView::SaveViewState Next Topic: IShellView::TranslateAccelerator |
IShellView::SelectItem
HRESULT SelectItem( LPCITEMIDLIST pidlItem, UINT uFlags );Changes the selection state of one or more items within the shell view window.
- Returns NOERROR if successful, or an OLE-defined error value otherwise.
- pidlItem
- Address of the ITEMIDLIST structure.
- uFlags
- Flag specifying what type of selection to apply. This parameter can be one of the following values:
SVSI_DESELECT Deselect the specified item. SVSI_DESELECTOTHERS Deselect all but the specified item. If pidlItem is NULL, deselect all items. SVSI_EDIT Put pidlItem in edit mode. SVSI_ENSUREVISIBLE Ensure the item is displayed on the screen. SVSI_FOCUSED The item should be given the focus. SVSI_SELECT The item should be selected.
Notes to Implementers
This method is used to implement the Target command from the File menu of the shell shortcut property sheet.
See also IShellView
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.