EM_STREAMOUT message
Causes a rich edit control to pass its contents to an application–defined EditStreamCallback callback function. The callback function can then write the stream of data to a file or any other location that it chooses.
Parameters
- wParam
-
Specifies the data format and replacement options.
This value must be one of the following values.
Value Meaning - SF_RTF
RTF.
- SF_RTFNOOBJS
RTF with spaces in place of COM objects.
- SF_TEXT
Text with spaces in place of COM objects.
- SF_TEXTIZED
Text with a text representation of COM objects.
The SF_RTFNOOBJS option is useful if an application stores COM objects itself, as RTF representation of COM objects is not very compact. The control word, \objattph, followed by a space denotes the object position.
In addition, you can specify the following flags.
- lParam
-
Pointer to an EDITSTREAM structure. On input, the pfnCallback member of this structure must point to an application–defined EditStreamCallback function. On output, the dwError member can contain a nonzero error code if an error occurred.
Return value
This message returns the number of characters written to the data stream.
Remarks
When you send an EM_STREAMOUT message, the rich edit control makes repeated calls to the EditStreamCallback function specified by the pfnCallback member of the EDITSTREAM structure. Each time it calls the callback function, the control passes a buffer containing a portion of the contents of the control. This process continues until the control has passed all its contents to the callback function, or until an error occurs.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
See also
- Reference
- EDITSTREAM
- EditStreamCallback
- EM_STREAMIN
Send comments about this topic to Microsoft
Build date: 10/27/2012