EditView.h
上传用户:shilei2004
上传日期:2020-07-18
资源大小:83k
文件大小:3k
- // EditView.h : interface of the CMyEditView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_EDITVIEW_H__8F54D639_0532_464A_814C_773ACD132D81__INCLUDED_)
- #define AFX_EDITVIEW_H__8F54D639_0532_464A_814C_773ACD132D81__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "MainFrm.h"
- class CEditCntrItem;
- class CMyEditView : public CRichEditView
- {
- protected: // create from serialization only
- CMyEditView();
- DECLARE_DYNCREATE(CMyEditView)
- // Attributes
- public:
- CEditDoc* GetDocument();
- void OnGetCharFormat(NMHDR* pNMHDR, LRESULT* pRes);
- void OnSetCharFormat(NMHDR* pNMHDR, LRESULT* pRes);
- void OnBarReturn(NMHDR*, LRESULT* );
- BOOL ExtAfxInitRichEdit(BOOL bUnicode);
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyEditView)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void OnInitialUpdate(); // called first time after construct
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
- virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void OnUpdateCharEffect2(CCmdUI* pCmdUI, DWORD dwMask, DWORD dwEffect);
- void OnSetParaFormatEx(PARAFORMAT2& pf);
- void OnGetParaFormatEx(PARAFORMAT2& pf);
- void OnSetCharFormatEx(CHARFORMAT2& cf, DWORD dwMask);
- void OnCharEffect2(DWORD dwMask, DWORD dwEffect);
- void OnGetCharFormatEx(CHARFORMAT2& cf, DWORD dwMask);
- void OnColorPick();
- virtual ~CMyEditView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- BOOL m_bFirst;
- BOOL m_bIsSpace;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMyEditView)
- afx_msg void OnDestroy();
- afx_msg void OnCharStrikeout();
- afx_msg void OnUpdateCharStrikeout(CCmdUI* pCmdUI);
- afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
- afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnEditRedo();
- afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI);
- afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnCharHighlight();
- afx_msg void OnParagraph();
- afx_msg void OnDate();
- afx_msg void OnSubscript();
- afx_msg void OnUpdateSubscript(CCmdUI* pCmdUI);
- afx_msg void OnSuperscript();
- afx_msg void OnUpdateSuperscript(CCmdUI* pCmdUI);
- afx_msg void OnInsertNumbering();
- afx_msg void OnUpdateInsertNumbering(CCmdUI* pCmdUI);
- afx_msg void OnChangeCase();
- afx_msg void OnUpdateChangeCase(CCmdUI* pCmdUI);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in EditView.cpp
- inline CEditDoc* CMyEditView::GetDocument()
- { return (CEditDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_EDITVIEW_H__8F54D639_0532_464A_814C_773ACD132D81__INCLUDED_)