Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

This message is sent by an application to inform the HTML control that the document is complete.

Syntax

DTM_ENDOFSOURCE
  wParam = 0;
  lParam = 0;

Parameters

None.

Return Value

None.

Remarks

After a DTM_ENDOFSOURCE message is sent, you cannot add more text to an existing page. No more text will be added until the document is cleared. This allows the HTML control to clean up error conditions resulting from incomplete data or corrupt or invalid HTML text.

Note:
Infer DTM_CLEAR (::Clear) when DTM_ADDTEXT (::AddText or ::AddTextW) after DTM_ENDOFSOURCE (::EndOfSource).

The following example shows how you might use this message.

Copy Code
SendMessage(hwndHTML, DTM_ENDOFSOURCE, 0, 0);

Requirements

Header htmlctrl.h
Library htmlctrl.lib
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also