DWebBrowserEvents2::TitleChange Event

Fires when the title of a document in the object becomes available or changes.

Syntax


void TitleChange(
    BSTR Text
);

Parameters

Text
[in] A BSTR that specifies the new document title.

Return Value

No return value.

Event DISPID


DISPID_TITLECHANGE

The DISPID for this event is defined in exdispid.h. Use this value to identify the event handler when implementing IDispatch::Invoke.

Remarks

Because the title might change while an HTML page is downloading, the URL of the document is set as the title. If the HTML page specifies a title, it is parsed, and the title is changed to reflect the actual title.

See Also

Show: