This message is sent by an application to inform the HTML control that the document is complete.
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.
|Infer DTM_CLEAR (::Clear) when DTM_ADDTEXT (::AddText or ::AddTextW) after DTM_ENDOFSOURCE (::EndOfSource).|
The following example shows how you might use this message.
SendMessage(hwndHTML, DTM_ENDOFSOURCE, 0, 0);