Condividi tramite


StringFromPartID method

Called by MSHTML during a call to IHTMLElement2::componentFromPoint so that a behavior can specify a name for the component.

Syntax

HRESULT retVal = object.StringFromPartID(lPartID, pbstrPart);

Parameters

  • lPartID [in]
    Type: LONG

    LONG that specifies the plPartID number that was passed to MSHTML by IHTMLPainter::HitTestPoint.

  • pbstrPart [out]
    Type: BSTR

    BSTR that specifies the name for the component.

Return value

Type: HRESULT

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