RegisterNotification method
Attach to Dynamic HTML (DHTML) behavior-specific notifications.
Syntax
HRESULT retVal = object.RegisterNotification(lEvent);
Parameters
lEvent [in]
Type: LONG
A value of type LONG that specifies one of the following notification types.
BEHAVIOREVENT_CONTENTREADY (0)
Notify when the end tag of the element is parsed.
BEHAVIOREVENT_DOCUMENTREADY (1)
Notify when the entire document to which this Dynamic HTML (DHTML) behavior is attached is parsed. This notification is received prior to downloading associated content, such as images.
BEHAVIOREVENT_APPLYSTYLE (2)
Notify when a new style is applied to the element to which this Dynamic HTML (DHTML) behavior is attached.
BEHAVIOREVENT_DOCUMENTCONTEXTCHANGE (3)
Notify when a behavior is added or removed from a document. Note that there is no notification when a behavior is created in a document by way of the parser.
BEHAVIOREVENT_CONTENTSAVE (4)
Notify when the content of the behavior is being saved.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This method is used to set flags that define the types of notifications that the behavior receives.