共用方式為


DTM_ADDTEXTW

Send Feedback

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

Syntax

DTM_ADDTEXTW
  wParam = (WPARAM)(BOOL) bPlainText;
  lParam = (LPARAM)(LPWSTR) 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 wide character text string to be added to the HTML control.

Return Values

None.

Remarks

This is the Unicode version of DTM_ADDTEXT. After the Unicode text has been added to the HTML control, the text parameters in the notification messages will be Unicode.

This topic is also documented in the Microsoft® Windows® CE SDK. Only the requirements table has changed.

The following example shows how you might use this message.

SendMessage(hWndCtrl, DTM_ADDTEXTW, FALSE, 
    (LPARAM)L"<bgsound src=\"file:\\\\windows\\default.wav\"loop=\"15\">);

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_ADDTEXT | DTM_CLEAR | DTM_ENDOFSOURCE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.