Export (0) Print
Expand All

CRichEditDoc Class

With CRichEditView and CRichEditCntrItem, provides the functionality of the rich edit control within the context of MFC's document view architecture.

class CRichEditDoc : public COleServerDoc

Name

Description

CRichEditDoc::CreateClientItem

Called to perform cleanup of the document.

CRichEditDoc::GetStreamFormat

Indicates whether stream input and output should include formatting information.

CRichEditDoc::GetView

Retrieves the asssociated CRichEditView object.

Name

Description

CRichEditDoc::m_bRTF

Indicates whether stream I/O should include formatting.

A "rich edit control" is a window in which the user can enter and edit text. The text can be assigned character and paragraph formatting, and can include embedded OLE objects. Rich edit controls provide a programming interface for formatting text. However, an application must implement any user interface components necessary to make formatting operations available to the user.

CRichEditView maintains the text and formatting characteristic of text. CRichEditDoc maintains the list of client items which are in the view. CRichEditCntrItem provides container-side access to the OLE client items.

This Windows Common control (and therefore the CRichEditCtrl and related classes) is available only to programs running under Windows 95/98 and Windows NT versions 3.51 and later.

For an example of using a rich edit document in an MFC application, see the WORDPAD sample application.

Header: afxrich.h

Show:
© 2014 Microsoft