Click to return to the Reusing Browser Technology home page    
IHTMLElement2::mergeAttri...     IHTMLElement2::removeBeha...     IHTMLElement2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLElement2::releaseCapture Method


Releases mouse capture from an object belonging to the current document.

Syntax

HRESULT releaseCapture(void);

Return Value

Returns S_OK if the function was bound successfully, or an error code otherwise.

Remarks

For releaseCapture to have an effect, mouse capture must have been set through the setCapture method.

The releaseCapture method can be invoked off the document object. Doing so makes it unnecessary to determine which element has capture in order to programmatically release it. Other actions also release document capture, such as displaying a modal dialog, or switching focus to another application or browser window.

See Also

get_onlosecapture, setCapture



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.