long StreamOut( int nFormat, EDITSTREAM& es );
Return Value
Number of characters written to the output stream.
Parameters
nFormat
Flags specifying the output data formats. See the Remarks section for more information.
es
EDITSTREAM structure specifying the output stream. See the Remarks section for more information.
Remarks
Call this function to write out the contents of this CRichEditCtrl object to the specified output stream.
The value of nFormat must be one of the following:
Any of these values can be combined with SFF_SELECTION. If SFF_SELECTION is specified, StreamOut writes out the current selection into the output stream. If it is not specified, StreamOut writes out the the entire contents of this CRichEditCtrl object.
In the EDITSTREAM parameter es, you specify a callback function which fills a buffer with text. This callback function is called repeatedly, until the output stream is exhausted.
For more information, see EM_STREAMOUT message and EDITSTREAM structure in the Win32 documentation.
CRichEditCtrl Overview | Class Members | Hierarchy Chart
See Also CRichEditCtrl::StreamIn