CRichEditCtrl Class Members

Construction
Line Operations
Selection Operations
Formatting Operations
Editing Operations
General Operations
Clipboard Operations
OLE Operations

Construction

CRichEditCtrl Constructs a CRichEditCtrl object.
Create Creates the Windows rich edit control and associates it with this CRichEditCtrl object.

Line Operations

GetLineCount Retrieves the number of lines in this CRichEditCtrl object.
GetLine Retrieves a line of text from this CRichEditCtrl object.
GetFirstVisibleLine Determines the topmost visible line in this CRichEditCtrl object.
LineIndex Retrieves the character index of a given line in this CRichEditCtrl object.
LineFromChar Determines which line contains the given character.
LineLength Retrieves the length of a given line in this CRichEditCtrl object.
LineScroll Scrolls the text in this CRichEditCtrl object.

Selection Operations

GetSel Gets the starting and ending positions of the current selection in this CRichEditCtrl object.
GetSelText Gets the text of the current selection in this CRichEditCtrl object
GetSelectionType Retrieves the type of contents in the current selection in this CRichEditCtrl object.
Clear Clears the current selection.
SetSel Sets the selection in this CRichEditCtrl object.
ReplaceSel Replaces the current selection in this CRichEditCtrl object with specified text.
HideSelection Shows or hides the the current selection.

Formatting Operations

GetDefaultCharFormat Retrieves the current default character formatting attributes in this CRichEditCtrl object.
GetSelectionCharFormat Retrieves the character formatting attributes in the current selection in this CRichEditCtrl object.
GetParaFormat Retrieves the paragraph formatting attributes in the current selection in this CRichEditCtrl object.
SetDefaultCharFormat Sets the current default character formatting attributes in this CRichEditCtrl object.
SetSelectionCharFormat Sets the character formatting attributes in the current selection in this CRichEditCtrl object.
SetWordCharFormat Sets the character formatting attributes in the current word in this CRichEditCtrl object.
SetParaFormat Sets the paragraph formatting attributes in the current selection in this CRichEditCtrl object.

Editing Operations

Undo Reverses the last editing operation.
CanUndo Determines if an editing operation can be undone.
EmptyUndoBuffer Resets (clears) the undo flag of this CRichEditCtrl object.
StreamIn Inserts text from an input stream into this CRichEditCtrl object.
StreamOut Stores text from this CRichEditCtrl object into an output stream.

General Operations

GetModify Determines if the contents of this CRichEditCtrl object have changed since the last save.
SetModify Sets or clears the modification flag for this CRichEditCtrl object.
FindText Locates text within this CRichEditCtrl object.
GetRect Retrieves the formatting rectangle for this CRichEditCtrl object.
SetRect Sets the formatting rectangle for this CRichEditCtrl object.
GetCharPos Determines the location of a given character within this CRichEditCtrl object.
SetOptions Sets the options for this CRichEditCtrl object.
SetReadOnly Sets the read-only option for this CRichEditCtrl object.
GetTextLength Retrieves the length of the text in this CRichEditCtrl object.
GetLimitText Gets the limit on the amount of text a user can enter into this CRichEditCtrl object.
LimitText Limits the amount of text a user can enter into the CRichEditCtrl object.
GetEventMask Retrieves the event mask for this CRichEditCtrl object.
SetEventMask Sets the event mask for this CRichEditCtrl object.
RequestResize Forces this CRichEditCtrl object to send request resize notifications.
SetBackgroundColor Sets the background color in this CRichEditCtrl object.
SetTargetDevice Sets the target output device for this CRichEditCtrl object.
FormatRange Formats a range of text for the target output device.
DisplayBand Displays a portion of the contents of this CRichEditCtrl object.

Clipboard Operations

Copy Copies the current selection to the Clipboard.
Cut Cuts the current selection to the Clipboard.
Paste Inserts the contents of the Clipboard into this rich edit control.
PasteSpecial Inserts the contents of the Clipboard into this rich edit control in the specified data format.
CanPaste Determines if the contents of the Clipboard can be pasted into this rich edit control.

OLE Operations

GetIRichEditOle Retrieves a pointer to the IRichEditOle interface for this rich edit control.
SetOLECallback Sets the IRichEditOleCallback COM object for this rich edit control.

CRichEditCtrl Overview |   Base Class MembersHierarchy Chart