Click to return to the Reusing Browser Technology home page    
IHTMLDocument3::recalc Me...     IHTMLDOMAttribute Interfa...     IHTMLDocument3 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLDocument3::releaseCapture Method


Removes the 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.



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.