MFC
Class CEditView
CObject
|
+--CCmdTarget
|
+--CWnd
|
+--CView
|
+--CCtrlView
|
+--CEditView
in AFXEXT.H
- class CEditView
- extends CCtrlView
CEditView - simple text editor view
| 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 |
protected virtual void |
CalcWindowRect( LPRECT lpClientRect, UINT nAdjustType = adjustBorder )
|
virtual void |
DeleteContents()
|
BOOL |
FindText( LPCTSTR lpszFind, BOOL bNext = TRUE, BOOL bCase = TRUE )
|
UINT |
GetBufferLength() const
|
CEdit& |
GetEditCtrl() const
|
CFont* |
GetPrinterFont() const
|
void |
GetSelectedText( CString& strResult ) const
|
protected BOOL |
InitializeReplace()
|
LPCTSTR |
LockBuffer() const
|
protected virtual void |
OnBeginPrinting( CDC* pDC, CPrintInfo* pInfo )
|
protected afx_msg int |
OnCreate( LPCREATESTRUCT lpCreateStruct )
|
protected afx_msg void |
OnDestroy()
|
protected afx_msg BOOL |
OnEditChange()
|
protected afx_msg void |
OnEditClear()
|
protected afx_msg void |
OnEditCopy()
|
protected afx_msg void |
OnEditCut()
|
protected afx_msg void |
OnEditFind()
|
protected void |
OnEditFindReplace( BOOL bFindOnly )
|
protected afx_msg void |
OnEditPaste()
|
protected afx_msg void |
OnEditRepeat()
|
protected afx_msg void |
OnEditReplace()
|
protected afx_msg void |
OnEditSelectAll()
|
protected afx_msg void |
OnEditUndo()
|
protected virtual void |
OnEndPrinting( CDC* pDC, CPrintInfo* pInfo = NULL )
|
protected virtual void |
OnFindNext( LPCTSTR lpszFind, BOOL bNext, BOOL bCase )
|
protected afx_msg LRESULT |
OnFindReplaceCmd( WPARAM wParam, LPARAM lParam )
|
virtual void |
OnPrepareDC( CDC* pDC, CPrintInfo* pInfo )
|
protected virtual BOOL |
OnPreparePrinting( CPrintInfo* pInfo )
|
protected virtual void |
OnPrint( CDC* pDC, CPrintInfo* pInfo )
|
protected virtual void |
OnReplaceAll( LPCTSTR lpszFind, LPCTSTR lpszReplace, BOOL bCase )
|
protected virtual void |
OnReplaceSel( LPCTSTR lpszFind, BOOL bNext, BOOL bCase, LPCTSTR lpszReplace )
|
protected afx_msg LRESULT |
OnSetFont( WPARAM wParam, LPARAM lParam )
|
protected virtual void |
OnTextNotFound( LPCTSTR lpszFind )
|
protected afx_msg void |
OnUpdateEditUndo( CCmdUI* pCmdUI )
|
protected afx_msg void |
OnUpdateNeedClip( CCmdUI* pCmdUI )
|
protected afx_msg void |
OnUpdateNeedFind( CCmdUI* pCmdUI )
|
protected afx_msg void |
OnUpdateNeedSel( CCmdUI* pCmdUI )
|
protected afx_msg void |
OnUpdateNeedText( CCmdUI* pCmdUI )
|
protected BOOL |
PaginateTo( CDC* pDC, CPrintInfo* pInfo )
|
protected virtual BOOL |
PreCreateWindow( CREATESTRUCT& cs )
|
UINT |
PrintInsideRect( CDC* pDC, RECT& rectLayout, UINT nIndexStart, UINT nIndexStop )
|
void |
ReadFromArchive( CArchive& ar, UINT nLen )
|
protected BOOL |
SameAsSelected( LPCTSTR lpszCompare, BOOL bCase )
|
virtual void |
Serialize( CArchive& ar )
|
void |
SerializeRaw( CArchive& ar )
|
void |
SetPrinterFont( CFont* pFont )
|
void |
SetTabStops( int nTabStops )
|
void |
UnlockBuffer() const
|
void |
WriteToArchive( CArchive& ar )
|
| Methods inherited from class CView |
GetDocument, DoPreparePrinting, IsSelected, OnScroll, OnScrollBy, OnDragEnter, OnDragOver, OnDragLeave, OnDrop, OnDropEx, OnDragScroll, OnPrepareDC, OnInitialUpdate, OnActivateView, OnActivateFrame, OnUpdate, OnDraw, OnPreparePrinting, OnBeginPrinting, OnPrint, OnEndPrinting, OnEndPrintPreview, DoPrintPreview, CalcWindowRect, GetScrollBarCtrl, GetParentSplitter, OnCmdMsg, PreCreateWindow, PostNcDestroy, OnCreate, OnDestroy, OnPaint, OnMouseActivate, OnUpdateSplitCmd, OnSplitCmd, OnUpdateNextPaneMenu, OnNextPaneCmd, OnFilePrint, OnFilePrintPreview, GetMessageMap |
| 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 |
dwStyleDefault
public static AFX_CORE_DATA const DWORD dwStyleDefault;
m_aPageStart
protected CUIntArray m_aPageStart;
m_hMirrorFont
protected HFONT m_hMirrorFont;
m_hPrinterFont
protected HFONT m_hPrinterFont;
m_nShadowSize
protected UINT m_nShadowSize;
m_nTabStops
protected int m_nTabStops;
m_pShadowBuffer
protected LPTSTR m_pShadowBuffer;
nMaxSize
public static AFX_CORE_DATA const UINT nMaxSize;
CEditView
public CEditView();
~CEditView
public virtual ~CEditView();
CalcWindowRect
protected virtual void CalcWindowRect( LPRECT lpClientRect, UINT nAdjustType = adjustBorder );
DeleteContents
public virtual void DeleteContents();
FindText
public BOOL FindText( LPCTSTR lpszFind, BOOL bNext = TRUE, BOOL bCase = TRUE );
GetBufferLength
public UINT GetBufferLength() const;
GetEditCtrl
public CEdit& GetEditCtrl() const;
GetPrinterFont
public CFont* GetPrinterFont() const;
GetSelectedText
public void GetSelectedText( CString& strResult ) const;
InitializeReplace
protected BOOL InitializeReplace();
LockBuffer
public LPCTSTR LockBuffer() const;
OnBeginPrinting
protected virtual void OnBeginPrinting( CDC* pDC, CPrintInfo* pInfo );
OnCreate
protected afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
OnDestroy
protected afx_msg void OnDestroy();
OnEditChange
protected afx_msg BOOL OnEditChange();
OnEditClear
protected afx_msg void OnEditClear();
OnEditCopy
protected afx_msg void OnEditCopy();
OnEditCut
protected afx_msg void OnEditCut();
OnEditFind
protected afx_msg void OnEditFind();
OnEditFindReplace
protected void OnEditFindReplace( BOOL bFindOnly );
OnEditPaste
protected afx_msg void OnEditPaste();
OnEditRepeat
protected afx_msg void OnEditRepeat();
OnEditReplace
protected afx_msg void OnEditReplace();
OnEditSelectAll
protected afx_msg void OnEditSelectAll();
OnEditUndo
protected afx_msg void OnEditUndo();
OnEndPrinting
protected virtual void OnEndPrinting( CDC* pDC, CPrintInfo* pInfo = NULL );
OnFindNext
protected virtual void OnFindNext( LPCTSTR lpszFind, BOOL bNext, BOOL bCase );
OnFindReplaceCmd
protected afx_msg LRESULT OnFindReplaceCmd( WPARAM wParam, LPARAM lParam );
OnPrepareDC
public virtual void OnPrepareDC( CDC* pDC, CPrintInfo* pInfo );
OnPreparePrinting
protected virtual BOOL OnPreparePrinting( CPrintInfo* pInfo );
OnPrint
protected virtual void OnPrint( CDC* pDC, CPrintInfo* pInfo );
OnReplaceAll
protected virtual void OnReplaceAll( LPCTSTR lpszFind, LPCTSTR lpszReplace, BOOL bCase );
OnReplaceSel
protected virtual void OnReplaceSel( LPCTSTR lpszFind, BOOL bNext, BOOL bCase, LPCTSTR lpszReplace );
OnSetFont
protected afx_msg LRESULT OnSetFont( WPARAM wParam, LPARAM lParam );
OnTextNotFound
protected virtual void OnTextNotFound( LPCTSTR lpszFind );
OnUpdateEditUndo
protected afx_msg void OnUpdateEditUndo( CCmdUI* pCmdUI );
OnUpdateNeedClip
protected afx_msg void OnUpdateNeedClip( CCmdUI* pCmdUI );
OnUpdateNeedFind
protected afx_msg void OnUpdateNeedFind( CCmdUI* pCmdUI );
OnUpdateNeedSel
protected afx_msg void OnUpdateNeedSel( CCmdUI* pCmdUI );
OnUpdateNeedText
protected afx_msg void OnUpdateNeedText( CCmdUI* pCmdUI );
PaginateTo
protected BOOL PaginateTo( CDC* pDC, CPrintInfo* pInfo );
PreCreateWindow
protected virtual BOOL PreCreateWindow( CREATESTRUCT& cs );
PrintInsideRect
public UINT PrintInsideRect( CDC* pDC, RECT& rectLayout, UINT nIndexStart, UINT nIndexStop );
ReadFromArchive
public void ReadFromArchive( CArchive& ar, UINT nLen );
SameAsSelected
protected BOOL SameAsSelected( LPCTSTR lpszCompare, BOOL bCase );
Serialize
public virtual void Serialize( CArchive& ar );
SerializeRaw
public void SerializeRaw( CArchive& ar );
SetPrinterFont
public void SetPrinterFont( CFont* pFont );
SetTabStops
public void SetTabStops( int nTabStops );
UnlockBuffer
public void UnlockBuffer() const;
WriteToArchive
public void WriteToArchive( CArchive& ar );