CRichEditView Class
With CRichEditDoc and CRichEditCntrItem, provides the functionality of the rich edit control within the context of MFC's document view architecture.
class CRichEditView : public CCtrlView
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CRichEditView object. |
Public Methods
Name |
Description |
---|---|
Moves a dialog box so that it doesn't obscure the current selection. |
|
Tells whether the Clipboard contains data that can be pasted into the rich edit view. |
|
Pastes an OLE item into this rich edit view. |
|
Finds the specified text, invoking the wait cursor. |
|
Finds the specified text. |
|
Retrieves the character formatting attributes for the current selection. |
|
Retrieves a pointer to the related CRichEditDoc. |
|
Retrieves the OLE item that is currently in-place active in the rich edit view. |
|
Retrieves the margins for this rich edit view. |
|
Retrieves the page rectangle for this rich edit view. |
|
Retrieves the paper size for this rich edit view. |
|
Retrieves the paragraph formatting attributes for the current selection. |
|
Retrieves the print rectangle for this rich edit view. |
|
Retrieves the print width for this rich edit view. |
|
Retrieves the rich edit control. |
|
Retrieves the selected item from the rich edit view. |
|
Retrieves the length of the text in the rich edit view. |
|
Retrieves the number of characters or bytes in the rich edit view. Expanded flag list for method of determining the length. |
|
Inserts a file as an OLE item. |
|
Inserts a new item as an OLE item. |
|
Tells whether the Clipboard contains data in a rich edit or text format. |
|
Toggles the character formatting for the current selection. |
|
Changes the alignment of paragraphs. |
|
Updates the Command UI for character public member functions. |
|
Updates the Command UI for paragraph public member functions. |
|
Formats the specified text within the given rectangle. |
|
Formats the specified text within the given page. |
|
Sets the character formatting attributes for the current selection. |
|
Sets the margins for this rich edit view. |
|
Sets the paper size for this rich edit view. |
|
Sets the paragraph formatting attributes for the current selection. |
|
Resets the internal search state of the control. |
Protected Methods
Name |
Description |
---|---|
Retrieves a Clipboard object for a range in this rich edit view. |
|
Retrieves a context menu to use on a right mouse-button down. |
|
Indicates if the given OLE item is selected or not. |
|
Finds the next occurrence of a substring. |
|
Refreshes a view when it is first attached to a document. |
|
Retrieves native data from an OLE item. |
|
Sets the print characteristics to the given device. |
|
Replaces all occurrences of a given string with a new string. |
|
Replaces the current selection. |
|
Handles user notification that the requested text was not found. |
|
Queries to see about the data on the IDataObject. |
|
Adjusts the target output device for this rich edit view, based on the value of m_nWordWrap. |
Public Data Members
Name |
Description |
---|---|
Indicates the amount of indent for bullet lists. |
|
Indicates the word wrap constraints. |
Remarks
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 OLE client items which are in the view. CRichEditCntrItem provides container-side access to the OLE client item.
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 view in an MFC application, see the WORDPAD sample application.
Inheritance Hierarchy
CRichEditView
Requirements
Header: afxrich.h