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.
-
Notify when the end tag of the element is parsed.
-
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.
-
Notify when a new style is applied to the element to which this Dynamic HTML (DHTML) behavior is attached.
-
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.
-
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.
See also