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 add text to the HTML Control.

Note:
It is recommended that DTM_ENDOFSOURCEbe used to end this message.

Syntax

DTM_ADDTEXT
  wParam = (WPARAM)(BOOL) 
bPlainText;
  lParam = (LPARAM)(LPSTR) 
szText;

Parameters

bPlainText

A Boolean that indicates the format of the text to be added. If set to TRUE, the text is treated as plain text. If set to FALSE, the text is treated as HTML-Formatted text.

szText

A null-terminated text string to be added to the HTML control

Return Value

None

Remark

The following example shows how you might use this message.

Copy Code
SendMessage(GetDlgItem(hwnd, IDC_HTML), DTM_ADDSTYLE, 0, 
			(LPARAM)TEXT("p#p0 {color:blue}"));

Requirements

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

See Also