This documentation is archived and is not being maintained.

CEditView Members 

This topic has been updated for Visual Studio 2005 SP1.

Base Class Members

CObject Members

CCmdTarget Members

CWnd Members

CView Members

CCtrlView Members

Data Members

dwStyleDefault

Default style for objects of type CEditView.

Construction

CEditView

Constructs an object of type CEditView.

Attributes

GetBufferLength

Obtains the length of the character buffer.

GetEditCtrl

Provides access to the CEdit portion of a CEditView object (the Windows edit control).

GetPrinterFont

Retrieves the current printer font.

GetSelectedText

Retrieves the current text selection.

LockBuffer

Locks the buffer.

SetPrinterFont

Sets a new printer font.

SetTabStops

Sets tab stops for both screen display and printing.

UnlockBuffer

Unlocks the buffer.

Operations

FindText

Searches for a string within the text.

PrintInsideRect

Renders text inside a given rectangle.

SerializeRaw

Serializes a CEditView object to disk as raw text.

Overridables

OnFindNext

Finds next occurrence of a text string.

OnReplaceAll

Replaces all occurrences of a given string with a new string.

OnReplaceSel

Replaces current selection.

OnTextNotFound

Called when a find operation fails to match any further text.

Smart Device Developer Notes

This section has been updated for Visual Studio 2005 SP1.

Starting in Visual Studio 2005 SP1, this class is supported in Smart Device projects.

In Windows CE-based projects, CEditView::LockBuffer and CEditView::UnlockBuffer do not lock and unlock the text contents of CEdit Class. LockBuffer only refreshes the m_pshadowbuffer buffer variable by checking for changes and then calling the inherited function CWnd::GetWindowText. Unlockbuffer does not do anything and is required for code compatibility.

Search over selected text does not work on Smartphone platforms because text cannot be selected on Smartphone devices.

The Smart Device version of CEditView Class does not support the following print methods:

See Also

Show: