DTM_ADDTEXT
4/8/2010
This message is sent by an application to add text to the HTML Control.
Note
It is recommended that DTM_ENDOFSOURCE be 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.
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
Reference
HTML Control API Messages
DTM_ADDSTYLE
DTM_ADDTEXTW
DTM_CLEAR
DTM_ENDOFSOURCE