Поделиться через


CRichEditCtrl Members

Base Class Members

Construction

Line Operations

Selection Operations

Formatting Operations

Editing Operations

General Operations

Clipboard Operations

OLE Operations

Base Class Members

CObject Members

CCmdTarget Members

CWnd Members

Construction

Create

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

CreateEx

Creates the Windows rich edit control with the specified extended Windows styles and associates it with this CRichEditCtrl object.

CRichEditCtrl

Constructs a CRichEditCtrl object.

Line Operations

CharFromPos

Retrieves information about the character closest to a specified point in the client area of an edit control.

GetFirstVisibleLine

Determines the topmost visible line in this CRichEditCtrl object.

GetLine

Retrieves a line of text from this CRichEditCtrl object.

GetLineCount

Retrieves the number of lines in this CRichEditCtrl object.

LineFromChar

Determines which line contains the given character.

LineIndex

Retrieves the character index of a given line in this CRichEditCtrl object.

LineLength

Retrieves the length of a given line in this CRichEditCtrl object.

LineScroll

Scrolls the text in this CRichEditCtrl object.

PosFromChar

Retrieves the client area coordinates of a specified character in an edit control.

Selection Operations

Clear

Clears the current selection.

GetSel

Gets the starting and ending positions of the current selection in this CRichEditCtrl object.

GetSelectionType

Retrieves the type of contents in the current selection in this CRichEditCtrl object.

GetSelText

Gets the text of the current selection in this CRichEditCtrl object

GetTextRange

Retrieves the specified range of text.

HideSelection

Shows or hides the current selection.

ReplaceSel

Replaces the current selection in this CRichEditCtrl object with specified text.

SetSel

Sets the selection in this CRichEditCtrl object.

Formatting Operations

GetDefaultCharFormat

Retrieves the current default character formatting attributes in this CRichEditCtrl object.

GetParaFormat

Retrieves the paragraph formatting attributes in the current selection in this CRichEditCtrl object.

GetSelectionCharFormat

Retrieves the character formatting attributes in the current selection in this CRichEditCtrl object.

SetDefaultCharFormat

Sets the current default character formatting attributes in this CRichEditCtrl object.

SetParaFormat

Sets the paragraph formatting attributes in the current selection 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.

Editing Operations

CanRedo

Determines whether there are any actions in the control's redo queue.

CanUndo

Determines if an editing operation can be undone.

EmptyUndoBuffer

Resets (clears) the undo flag of this CRichEditCtrl object.

GetRedoName

Retrieves the type of the next action, if any, in the control's redo queue.

GetUndoName

Retrieves the type of the next undo action, if any.

Redo

Redoes the next action in the control's redo queue.

SetUndoLimit

Sets the maximum number of actions that can stored in the undo queue.

StopGroupTyping

Stops the control from collecting additional typing actions into the current undo action. The control stores the next typing action, if any, into a new action in the undo queue.

StreamIn

Inserts text from an input stream into this CRichEditCtrl object.

StreamOut

Stores text from this CRichEditCtrl object into an output stream.

Undo

Reverses the last editing operation.

General Operations

DisplayBand

Displays a portion of the contents of this CRichEditCtrl object.

FindText

Locates text within this CRichEditCtrl object.

FindWordBreak

Finds the next word break before or after the specified character position, or retrieves information about the character at that position.

FormatRange

Formats a range of text for the target output device.

GetCharPos

Determines the location of a given character within this CRichEditCtrl object.

GetEventMask

Retrieves the event mask for this CRichEditCtrl object.

GetLimitText

Gets the limit on the amount of text a user can enter into this CRichEditCtrl object.

GetModify

Determines if the contents of this CRichEditCtrl object have changed since the last save.

GetOptions

Retrieves the rich edit control options.

GetPunctuation

Retrieves the current punctuation characters for the rich edit control. This message is available only in Asian-language versions of the operating system.

GetRect

Retrieves the formatting rectangle for this CRichEditCtrl object.

GetTextLength

Retrieves the length of the text, in characters, in this CRichEditCtrl object. Does not include the terminating null character.

GetTextLengthEx

Retrieves the number of characters or bytes in the rich edit view. Accepts a list of flags to indicate the method of determining length of the text in a rich edit control

GetTextMode

Retrieves the current text mode and undo level of a rich edit control.

GetWordWrapMode

Retrieves the current word wrapping and word breaking options for the rich edit control. This message is available only in Asian-language versions of the operating system.

LimitText

Limits the amount of text a user can enter into the CRichEditCtrl object.

RequestResize

Forces this CRichEditCtrl object to send request resize notifications.

SetAutoURLDetect

Indicates if the auto URL detection is active in a rich edit control.

SetBackgroundColor

Sets the background color in this CRichEditCtrl object.

SetEventMask

Sets the event mask for this CRichEditCtrl object.

SetModify

Sets or clears the modification flag for this CRichEditCtrl object.

SetOptions

Sets the options for this CRichEditCtrl object.

SetPunctuation

Sets the punctuation characters for a rich edit control. This message is available only in Asian-language versions of the operating system.

SetReadOnly

Sets the read-only option for this CRichEditCtrl object.

SetRect

Sets the formatting rectangle for this CRichEditCtrl object.

SetTargetDevice

Sets the target output device for this CRichEditCtrl object.

SetTextMode

Sets the text mode or undo level of a rich edit control. The message fails if the control contains text.

SetWordWrapMode

Sets the word-wrapping and word-breaking options for the rich edit control. This message is available only in Asian-language versions of the operating system.

Clipboard Operations

CanPaste

Determines if the contents of the Clipboard can be pasted into this rich edit control.

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.

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 Class

Hierarchy Chart