Click to return to the Reusing Browser Technology home page    
IElementBehaviorSiteOM::G...     IElementBehaviorSiteOM::R...     IElementBehaviorSiteOM In...    
Web Workshop  |  Reusing Browser Technology

IElementBehaviorSiteOM::RegisterEvent Method


Registers a custom Dynamic HTML (DHTML) behavior event.

Syntax

HRESULT RegisterEvent(
    LPOLESTR pchEvent,
    LONG lReserved,
    LONG *plEventCookie
);

Parameters

pchEvent
[in] Address of a string that specifies the name of the event to register.
lReserved
[in] Reserved for future use.
plEventCookie
Address of a long variable that identifies the custom event specified by pchEvent. This value is used by the IElementBehaviorSiteOM::FireEvent and IElementBehaviorSiteOM::GetEventCookie methods.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

A DHTML behavior must call this method for MSHTML to recognize the custom event.



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.