共用方式為


IsRightOf method

Determines whether the display pointer that this interface refers to is to the right of another one.

Syntax

HRESULT retVal = object.IsRightOf(pDispPointer, pfIsLeftOf);

Parameters

  • pDispPointer [in]
    Type: IDisplayPointer

    A pointer to an IDisplayPointer interface that specifies the display pointer to compare to this one.

  • pfIsLeftOf [out]
    Type: BOOL

    A pointer to a variable of type BOOL that receives TRUE if the display pointer represented by this interface is to the right of pDispPointer, or FALSE otherwise.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.