次の方法で共有


IShellView::GetItemObject (Compact 2013)

3/28/2014

This method retrieves an interface that refers to data presented in the view.

Syntax

HRESULT GetItemObject(
  UINT uItem,
  REFIID riid,
  LPVOID* ppv
);

Parameters

  • uItem
    Constants that refer to an aspect of the view. The following table shows the possible values from the SVGIO enumeration that this parameter can be.

    Value

    Description

    SVGIO_BACKGROUND

    Refers to the background of the view.

    SVGIO_SELECTION

    Refers to the currently selected items.

    SVGIO_ALLVIEW

    Same as SVGIO_SELECTION but refers to all items in the view.

    SVGIO_CHECKED

    Used in the same way as SVGIO_SELECTION but refers to checked items in views where checked mode is supported.

    SVGIO_TYPE_MASK

    Masks all bits except those that correspond to the SVGIO flags.

    SVGIO_FLAG_VIEWORDER

    Return the items in the order that they appear in the view. If this flag is not set, the selected item will be listed first.

  • riid
    Identifier of the Component Object Model (COM) interface being requested.
  • ppv
    Address that receives the interface pointer. If an error occurs, the pointer returned must be NULL.

Return Value

Returns NOERROR if successful, or an OLE-defined error value otherwise.

Remarks

This method is used by the common dialog boxes to retrieve the selected items from the view.

Requirements

Header

shobjidl.h,
shobjidl.idl

Library

Developer Implemented

See Also

Reference

IShellView
Shell Interfaces