Export (0) Print
Expand All
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

EM_SETTEXTEX message

Combines the functionality of the WM_SETTEXT and EM_REPLACESEL messages, and adds the ability to set text using a code page and to use either rich text or plain text.

Parameters

wParam

Pointer to a SETTEXTEX structure that specifies flags and an optional code page to use in translating to Unicode.

lParam

Pointer to the null-terminated text to insert. This text is an ANSI string, unless the code page is 1200 (Unicode). If lParam starts with a valid RTF ASCII sequence—for example, "{\rtf" or "{urtf"—the text is read in using the RTF reader.

Return value

If the operation is setting all of the text and succeeds, the return value is 1.

If the operation is setting the selection and succeeds, the return value is the number of bytes or characters copied.

If the operation fails, the return value is zero.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

Rich Edit 3.0

Header

Richedit.h

See also

Reference
EM_GETTEXTEX
SETTEXTEX

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.