Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DTM_ADDTEXT

Windows Mobile 6.5
4/8/2010

This message is sent by an application to add text to the HTML Control.

Bb159838.note(en-us,MSDN.10).gifNote:
It is recommended that DTM_ENDOFSOURCE be used to end this message.


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

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

The following example shows how you might use this message.

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

Headerhtmlctrl.h
Libraryhtmlctrl.lib
Windows MobilePocket PC 2002 and later, Smartphone 2002 and later

Community Additions

Show:
© 2015 Microsoft