Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.53 KB

stream-operations-in-rich-edit-controls.md

File metadata and controls

19 lines (14 loc) · 1.53 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Stream Operations in Rich Edit Controls
Stream Operations in Rich Edit Controls
11/04/2016
CRichEditCtrl class [MFC], stream operations
CRichEditCtrl class [MFC], stream storage
rich edit controls [MFC], stream operations
storage, stream in CRichEditCtrl
stream operations in CRichEditCtrl
stream storage and CRichEditCtrl
110b4684-1e76-4ca6-9ef0-5bc8b2d93c78

Stream Operations in Rich Edit Controls

You can use streams to transfer data into or out of a rich edit control (CRichEditCtrl). A stream is defined by an EDITSTREAM structure, which specifies a buffer and an application-defined callback function.

To read data into a rich edit control (that is, stream the data in), use the StreamIn member function. The control repeatedly calls the application-defined callback function, which transfers a portion of the data into the buffer each time.

To save the contents of a rich edit control (that is, stream the data out), you can use the StreamOut member function. The control repeatedly writes to the buffer and then calls the application-defined callback function. For each call, the callback function saves the contents of the buffer.

See also

Using CRichEditCtrl
Controls