共用方式為


DTM_ADDTEXT

Send Feedback

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

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 Values

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

Pocket PC: Pocket PC 2002 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: htmlctrl.h
Library: htmlctrl.lib

See Also

HTML Control API Messages | DTM_ADDSTYLE | DTM_ADDTEXTW | DTM_CLEAR | DTM_ENDOFSOURCE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.