Click to return to the Reusing Browser Technology home page    
IHTMLEventObj::get_button...     IHTMLEventObj::get_client...     IHTMLEventObj Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLEventObj::get_cancelBubble Method


Retrieves the value that indicates whether the current event should bubble up the hierarchy of event handlers.

Syntax

HRESULT get_cancelBubble(
    VARIANT_BOOL *p
);

Parameters

p
Address of a VARIANT Boolean structure that receives VARIANT_TRUE if bubbling has been canceled, or VARIANT_FALSE otherwise. For details, see the cancelBubble property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLEventObj::put_cancelBubble Method


Sets the value that indicates whether the current event should bubble up the hierarchy of event handlers.

Syntax

HRESULT put_cancelBubble(
    VARIANT_BOOL v
);

Parameters

v
VARIANT Boolean structure that contains the cancel-bubble flag. VARIANT_TRUE cancels bubbling for this event, preventing the next event handler in the hierarchy from receiving the event. VARIANT_FALSE enables bubbling; this is the default value. For details, see the cancelBubble property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


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.