MFC
Class CRichEditCtrl
CObject
|
+--CCmdTarget
|
+--CWnd
|
+--CRichEditCtrl
in AFXCMN.H
- class CRichEditCtrl
- extends CWnd
CRichEditCtrl
| Fields inherited from class CWnd |
m_hWnd, wndTop, wndBottom, wndTopMost, wndNoTopMost, m_hWndOwner, m_nFlags, m_pfnSuper, m_nMsgDragList, m_nModalResult, m_pDropTarget, m_pCtrlCont, m_pCtrlSite, messageMap |
| Fields inherited from class CCmdTarget |
messageMap, commandMap, dispatchMap, connectionMap, interfaceMap, eventsinkMap, m_dwRef, m_pOuterUnknown, m_xInnerUnknown, m_xDispatch, m_bResultExpected, m_xConnPtContainer |
|
Method Summary |
BOOL |
CanPaste( UINT nFormat = 0 ) const
|
BOOL |
CanUndo() const
|
void |
Clear()
|
void |
Copy()
|
BOOL |
Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID )
|
void |
Cut()
|
BOOL |
DisplayBand( LPRECT pDisplayRect )
|
void |
EmptyUndoBuffer()
|
long |
FindText( DWORD dwFlags, FINDTEXTEX* pFindText ) const
|
long |
FormatRange( FORMATRANGE* pfr, BOOL bDisplay = TRUE )
|
CPoint |
GetCharPos( long lChar ) const
|
DWORD |
GetDefaultCharFormat( CHARFORMAT& cf ) const
|
long |
GetEventMask() const
|
int |
GetFirstVisibleLine() const
|
IRichEditOle* |
GetIRichEditOle() const
|
long |
GetLimitText() const
|
int |
GetLine( int nIndex, LPTSTR lpszBuffer ) const
|
int |
GetLine( int nIndex, LPTSTR lpszBuffer, int nMaxLength ) const
|
int |
GetLineCount() const
|
BOOL |
GetModify() const
|
DWORD |
GetParaFormat( PARAFORMAT& pf ) const
|
void |
GetRect( LPRECT lpRect ) const
|
void |
GetSel( long& nStartChar, long& nEndChar ) const
|
void |
GetSel( CHARRANGE& cr ) const
|
DWORD |
GetSelectionCharFormat( CHARFORMAT& cf ) const
|
WORD |
GetSelectionType() const
|
long |
GetSelText( LPSTR lpBuf ) const
|
CString |
GetSelText() const
|
long |
GetTextLength() const
|
void |
HideSelection( BOOL bHide, BOOL bPerm )
|
void |
LimitText( long nChars = 0 )
|
long |
LineFromChar( long nIndex ) const
|
int |
LineIndex( int nLine =-1 ) const
|
int |
LineLength( int nLine =-1 ) const
|
void |
LineScroll( int nLines, int nChars = 0 )
|
void |
Paste()
|
void |
PasteSpecial( UINT nClipFormat, DWORD dvAspect = 0, HMETAFILE hMF = 0 )
|
void |
ReplaceSel( LPCTSTR lpszNewText, BOOL bCanUndo = FALSE )
|
void |
RequestResize()
|
COLORREF |
SetBackgroundColor( BOOL bSysColor, COLORREF cr )
|
BOOL |
SetDefaultCharFormat( CHARFORMAT& cf )
|
DWORD |
SetEventMask( DWORD dwEventMask )
|
void |
SetModify( BOOL bModified = TRUE )
|
BOOL |
SetOLECallback( IRichEditOleCallback* pCallback )
|
void |
SetOptions( WORD wOp, DWORD dwFlags )
|
BOOL |
SetParaFormat( PARAFORMAT& pf )
|
BOOL |
SetReadOnly( BOOL bReadOnly = TRUE )
|
void |
SetRect( LPCRECT lpRect )
|
void |
SetSel( CHARRANGE& cr )
|
void |
SetSel( long nStartChar, long nEndChar )
|
BOOL |
SetSelectionCharFormat( CHARFORMAT& cf )
|
BOOL |
SetTargetDevice( CDC& dc, long lLineWidth )
|
BOOL |
SetTargetDevice( HDC hDC, long lLineWidth )
|
BOOL |
SetWordCharFormat( CHARFORMAT& cf )
|
long |
StreamIn( int nFormat, EDITSTREAM& es )
|
long |
StreamOut( int nFormat, EDITSTREAM& es )
|
BOOL |
Undo()
|
| Methods inherited from class CWnd |
GetCurrentMessage, HWND, operator==, operator!=, GetSafeHwnd, GetStyle, GetExStyle, ModifyStyle, ModifyStyleEx, GetOwner, SetOwner, FromHandle, FromHandlePermanent, DeleteTempMap, Attach, Detach, PreSubclassWindow, SubclassWindow, SubclassDlgItem, UnsubclassWindow, ExecuteDlgInit, ExecuteDlgInit, Create, CreateEx, CreateEx, CreateControl, CreateControl, CreateControl, GetControlUnknown, DestroyWindow, PreCreateWindow, CalcWindowRect, GetDlgCtrlID, SetDlgCtrlID, GetDlgItem, GetDlgItem, GetDescendantWindow, SendMessageToDescendants, GetParentFrame, GetTopLevelParent, GetTopLevelOwner, GetParentOwner, GetTopLevelFrame, GetSafeOwner, SendMessage, PostMessage, SendNotifyMessage, SendChildNotifyLastMsg, IsDialogMessage, SetWindowText, GetWindowText, GetWindowText, GetWindowTextLength, SetFont, GetFont, GetMenu, SetMenu, DrawMenuBar, GetSystemMenu, HiliteMenuItem, IsIconic, IsZoomed, MoveWindow, MoveWindow, SetWindowRgn, GetWindowRgn, SetWindowPos, ArrangeIconicWindows, BringWindowToTop, GetWindowRect, GetClientRect, GetWindowPlacement, SetWindowPlacement, ClientToScreen, ClientToScreen, ScreenToClient, ScreenToClient, MapWindowPoints, MapWindowPoints, BeginPaint, EndPaint, GetDC, GetWindowDC, ReleaseDC, Print, PrintClient, UpdateWindow, SetRedraw, GetUpdateRect, GetUpdateRgn, Invalidate, InvalidateRect, InvalidateRgn, ValidateRect, ValidateRgn, ShowWindow, IsWindowVisible, ShowOwnedPopups, GetDCEx, LockWindowUpdate, UnlockWindowUpdate, RedrawWindow, EnableScrollBar, SetTimer, KillTimer, EnableToolTips, EnableTrackingToolTips, CancelToolTips, FilterToolTipMessage, OnToolHitTest, IsWindowEnabled, EnableWindow, GetActiveWindow, SetActiveWindow, SetForegroundWindow, GetForegroundWindow, GetCapture, SetCapture, GetFocus, SetFocus, GetDesktopWindow, CloseWindow, OpenIcon, CheckDlgButton, CheckRadioButton, GetCheckedRadioButton, DlgDirList, DlgDirListComboBox, DlgDirSelect, DlgDirSelectComboBox, GetDlgItemInt, GetDlgItemText, GetDlgItemText, GetNextDlgGroupItem, GetNextDlgTabItem, IsDlgButtonChecked, SendDlgItemMessage, SetDlgItemInt, SetDlgItemText, GetScrollPos, GetScrollRange, ScrollWindow, SetScrollPos, SetScrollRange, ShowScrollBar, EnableScrollBarCtrl, GetScrollBarCtrl, ScrollWindowEx, SetScrollInfo, GetScrollInfo, GetScrollLimit, ChildWindowFromPoint, ChildWindowFromPoint, FindWindow, GetNextWindow, GetTopWindow, GetWindow, GetLastActivePopup, IsChild, GetParent, SetParent, WindowFromPoint, FlashWindow, MessageBox, ChangeClipboardChain, SetClipboardViewer, OpenClipboard, GetClipboardOwner, GetClipboardViewer, GetOpenClipboardWindow, CreateCaret, CreateSolidCaret, CreateGrayCaret, GetCaretPos, SetCaretPos, HideCaret, ShowCaret, DragAcceptFiles, SetIcon, GetIcon, SetWindowContextHelpId, GetWindowContextHelpId, UpdateData, OnHelp, OnHelpIndex, OnHelpFinder, OnHelpUsing, WinHelp, RepositionBars, UpdateDialogControls, CenterWindow, RunModalLoop, ContinueModal, EndModalLoop, InvokeHelper, SetProperty, GetProperty, GetDSCCursor, BindDefaultProperty, BindProperty, OnCommand, OnNotify, OnActivate, OnActivateApp, OnActivateTopLevel, OnCancelMode, OnChildActivate, OnClose, OnContextMenu, OnCopyData, OnCreate, OnCtlColor, OnDestroy, OnEnable, OnEndSession, OnEnterIdle, OnEraseBkgnd, OnGetMinMaxInfo, OnHelpInfo, OnIconEraseBkgnd, OnKillFocus, OnMenuChar, OnMenuSelect, OnMove, OnPaint, OnParentNotify, OnQueryDragIcon, OnQueryEndSession, OnQueryNewPalette, OnQueryOpen, OnSetFocus, OnShowWindow, OnSize, OnTCard, OnWindowPosChanging, OnWindowPosChanged, OnNcActivate, OnNcCalcSize, OnNcCreate, OnNcDestroy, OnNcHitTest, OnNcLButtonDblClk, OnNcLButtonDown, OnNcLButtonUp, OnNcMButtonDblClk, OnNcMButtonDown, OnNcMButtonUp, OnNcMouseMove, OnNcPaint, OnNcRButtonDblClk, OnNcRButtonDown, OnNcRButtonUp, OnDropFiles, OnPaletteIsChanging, OnSysChar, OnSysCommand, OnSysDeadChar, OnSysKeyDown, OnSysKeyUp, OnCompacting, OnDevModeChange, OnFontChange, OnPaletteChanged, OnSpoolerStatus, OnSysColorChange, OnTimeChange, OnSettingChange, OnWinIniChange, OnChar, OnDeadChar, OnHScroll, OnVScroll, OnKeyDown, OnKeyUp, OnLButtonDblClk, OnLButtonDown, OnLButtonUp, OnMButtonDblClk, OnMButtonDown, OnMButtonUp, OnMouseActivate, OnMouseMove, OnMouseWheel, OnRegisteredMouseWheel, OnRButtonDblClk, OnRButtonDown, OnRButtonUp, OnSetCursor, OnTimer, OnInitMenu, OnInitMenuPopup, OnAskCbFormatName, OnChangeCbChain, OnDestroyClipboard, OnDrawClipboard, OnHScrollClipboard, OnPaintClipboard, OnRenderAllFormats, OnRenderFormat, OnSizeClipboard, OnVScrollClipboard, OnCompareItem, OnDeleteItem, OnDrawItem, OnGetDlgCode, OnMeasureItem, OnCharToItem, OnVKeyToItem, OnMDIActivate, OnEnterMenuLoop, OnExitMenuLoop, OnStyleChanged, OnStyleChanging, OnSizing, OnMoving, OnCaptureChanged, OnDeviceChange, GetSuperWndProcAddr, DoDataExchange, BeginModalState, EndModalState, PreTranslateMessage, OnAmbientProperty, WindowProc, OnWndMsg, Default, DefWindowProc, PostNcDestroy, OnChildNotify, ReflectChildNotify, ReflectLastMsg, CheckAutoCenter, SubclassCtl3d, SubclassDlg3d, GrayCtlColor, OnGrayCtlColor, HandleFloatingSysCommand, IsTopParentActive, ActivateTopParent, WalkPreTranslateTree, GetDescendantWindow, SendMessageToDescendants, IsFrameWnd, OnFinalRelease, PreTranslateInput, ModifyStyle, ModifyStyleEx, _FilterToolTipMessage, _EnableToolTips, GetSafeOwner_, CreateDlg, CreateDlgIndirect, CreateDlgIndirect, InitControlContainer, SetOccDialogInfo, AttachControlSite, AttachControlSite, OnNTCtlColor, OnQuery3dControls, OnDisplayChange, OnDragList, GetMessageMap |
| Methods inherited from class CCmdTarget |
GetIDispatch, FromIDispatch, IsResultExpected, EnableAutomation, EnableConnections, BeginWaitCursor, EndWaitCursor, RestoreWaitCursor, EnumOleVerbs, DoOleVerb, OnCmdMsg, OnFinalRelease, IsInvokeAllowed, EnableTypeLib, GetTypeInfoOfGuid, GetDispatchIID, GetTypeInfoCount, GetTypeLibCache, GetTypeLib, GetNotSupported, SetNotSupported, GetRoutingView, GetRoutingFrame, GetRoutingView_, GetRoutingFrame_, GetMessageMap, GetCommandMap, GetDispatchMap, GetConnectionMap, GetInterfaceMap, GetEventSinkMap, EnableAggregation, ExternalDisconnect, GetControllingUnknown, InternalQueryInterface, InternalAddRef, InternalRelease, ExternalQueryInterface, ExternalAddRef, ExternalRelease, GetInterface, QueryAggregates, OnCreateAggregates, GetInterfaceHook, GetStandardProp, SetStandardProp, GetEntryCount, GetDispEntry, MemberIDFromName, GetStackSize, PushStackArgs, CallMemberFunc, OnEvent, GetEventSinkEntry, GetExtraConnectionPoints, GetConnectionHook |
CRichEditCtrl
public CRichEditCtrl();
~CRichEditCtrl
public virtual ~CRichEditCtrl();
CanPaste
public BOOL CanPaste( UINT nFormat = 0 ) const;
CanUndo
public BOOL CanUndo() const;
Clear
public void Clear();
Copy
public void Copy();
Create
public BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );
Cut
public void Cut();
DisplayBand
public BOOL DisplayBand( LPRECT pDisplayRect );
EmptyUndoBuffer
public void EmptyUndoBuffer();
FindText
public long FindText( DWORD dwFlags, FINDTEXTEX* pFindText ) const;
FormatRange
public long FormatRange( FORMATRANGE* pfr, BOOL bDisplay = TRUE );
GetCharPos
public CPoint GetCharPos( long lChar ) const;
GetDefaultCharFormat
public DWORD GetDefaultCharFormat( CHARFORMAT& cf ) const;
GetEventMask
public long GetEventMask() const;
GetFirstVisibleLine
public int GetFirstVisibleLine() const;
GetIRichEditOle
public IRichEditOle* GetIRichEditOle() const;
GetLimitText
public long GetLimitText() const;
GetLine
public int GetLine( int nIndex, LPTSTR lpszBuffer ) const;
GetLine
public int GetLine( int nIndex, LPTSTR lpszBuffer, int nMaxLength ) const;
GetLineCount
public int GetLineCount() const;
GetModify
public BOOL GetModify() const;
GetParaFormat
public DWORD GetParaFormat( PARAFORMAT& pf ) const;
GetRect
public void GetRect( LPRECT lpRect ) const;
GetSel
public void GetSel( long& nStartChar, long& nEndChar ) const;
GetSel
public void GetSel( CHARRANGE& cr ) const;
GetSelectionCharFormat
public DWORD GetSelectionCharFormat( CHARFORMAT& cf ) const;
GetSelectionType
public WORD GetSelectionType() const;
GetSelText
public long GetSelText( LPSTR lpBuf ) const;
GetSelText
public CString GetSelText() const;
GetTextLength
public long GetTextLength() const;
HideSelection
public void HideSelection( BOOL bHide, BOOL bPerm );
LimitText
public void LimitText( long nChars = 0 );
LineFromChar
public long LineFromChar( long nIndex ) const;
LineIndex
public int LineIndex( int nLine =-1 ) const;
LineLength
public int LineLength( int nLine =-1 ) const;
LineScroll
public void LineScroll( int nLines, int nChars = 0 );
Paste
public void Paste();
PasteSpecial
public void PasteSpecial( UINT nClipFormat, DWORD dvAspect = 0, HMETAFILE hMF = 0 );
ReplaceSel
public void ReplaceSel( LPCTSTR lpszNewText, BOOL bCanUndo = FALSE );
RequestResize
public void RequestResize();
SetBackgroundColor
public COLORREF SetBackgroundColor( BOOL bSysColor, COLORREF cr );
SetDefaultCharFormat
public BOOL SetDefaultCharFormat( CHARFORMAT& cf );
SetEventMask
public DWORD SetEventMask( DWORD dwEventMask );
SetModify
public void SetModify( BOOL bModified = TRUE );
SetOLECallback
public BOOL SetOLECallback( IRichEditOleCallback* pCallback );
SetOptions
public void SetOptions( WORD wOp, DWORD dwFlags );
SetParaFormat
public BOOL SetParaFormat( PARAFORMAT& pf );
SetReadOnly
public BOOL SetReadOnly( BOOL bReadOnly = TRUE );
SetRect
public void SetRect( LPCRECT lpRect );
SetSel
public void SetSel( CHARRANGE& cr );
SetSel
public void SetSel( long nStartChar, long nEndChar );
SetSelectionCharFormat
public BOOL SetSelectionCharFormat( CHARFORMAT& cf );
SetTargetDevice
public BOOL SetTargetDevice( CDC& dc, long lLineWidth );
SetTargetDevice
public BOOL SetTargetDevice( HDC hDC, long lLineWidth );
SetWordCharFormat
public BOOL SetWordCharFormat( CHARFORMAT& cf );
StreamIn
public long StreamIn( int nFormat, EDITSTREAM& es );
StreamOut
public long StreamOut( int nFormat, EDITSTREAM& es );
Undo
public BOOL Undo();