共用方式為


msGetPointerCapture method

Gets whether the element that has captured a specific pointer.

 

Syntax

HRESULT retVal = object.msGetPointerCapture(pointerId, retVal);

Parameters

  • pointerId [in]
    Type: long

    Identifier of the pointer that should be captured.

  • retVal [out, retval]
    Type: Element

    The current element that has captured the specific pointer.

Return value

Type: HRESULT

This method can return one of these values.

S_OK

Remarks

This method determines the pointerId that is currently captured by the element. It returns NULL if the pointerId is not captured.

Note  This item described in this topic requires Windows 8.