// ScintillaEditView.h : interface of the CScintillaEditView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_ScintillaEditView_H__48046430_3459_11D7_8B8F_0040333597D3__INCLUDED_) #define AFX_ScintillaEditView_H__48046430_3459_11D7_8B8F_0040333597D3__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "ScintillaEditCtrl.h" #include "CustomCtrlView.h" class CScintillaEditView : public CCustomCtrlView { protected: // create from serialization only CScintillaEditView(); DECLARE_DYNCREATE(CScintillaEditView) // Attributes public: CScintillaEditCtrl& GetSciEditCtrl() { return *((CScintillaEditCtrl*) GetCustomCtrl()); } // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CScintillaEditView) public: virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL); //}}AFX_VIRTUAL afx_msg void OnStyleNeeded(NMHDR* pNotifyStruct, LRESULT* pResult); afx_msg void OnSavePointLeft( NMHDR * pNotifyStruct, LRESULT * result ); afx_msg void OnSavePointReached(NMHDR* pNotifyStruct, LRESULT* pResult); // Implementation /// @name Text serialization /** * Writes the contents of the control to the archive. * @param ar Archive to store the text into. */ void WriteToArchive(CArchive& ar); /** * Reads the contents of the control to the archive. * @param ar Archive to read the text from. */ void ReadFromArchive(CArchive& ar); public: virtual ~CScintillaEditView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CScintillaEditView) afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI); afx_msg void OnEditCopy(); afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI); afx_msg void OnEditPaste(); afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI); afx_msg void OnEditCut(); afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI); afx_msg void OnEditUndo(); afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI); afx_msg void OnEditRedo(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_ScintillaEditView_H__48046430_3459_11D7_8B8F_0040333597D3__INCLUDED_)