⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 epricvw.h

📁 一个完整的编辑器的代码(很值得参考
💻 H
字号:
///////////////////////////////////////////////////////////////////////////
//  File:    epricvw.h
//  Version: 1.6.0.9
//  Updated: 18-Oct-1999
//
//  RTF View core
//
//  Copyright:  Ferdinand Prantl
//  E-mail:     prantl@ff.cuni.cz
//
//  You are free to use or modify this code to the following restrictions:
//  - Acknowledge me somewhere in your about box, simple "Parts of code by.."
//  will be enough. If you can't (or don't want to), contact me personally.
//  - LEAVE THIS HEADER INTACT
////////////////////////////////////////////////////////////////////////////

// editpadview.h : interface of the CEditPadRichView class
//
/////////////////////////////////////////////////////////////////////////////

#ifndef __EPRICVW_INCLUDED__
#define __EPRICVW_INCLUDED__

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "richevw2.h"

class CEditPadRichView : public CRichEditView2
  {
protected :                   // create from serialization only
    CEditPadRichView ();
    DECLARE_DYNCREATE (CEditPadRichView)

    // Attributes
public :
    CEditPadRichDoc * GetDocument ();

    // Operations
public :

    // Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CEditPadRichView)
	public:
    virtual BOOL PreCreateWindow (CREATESTRUCT & cs);
	protected:
	//}}AFX_VIRTUAL

    // Implementation
public :
    virtual ~CEditPadRichView ();
#ifdef _DEBUG
    virtual void AssertValid () const;
    virtual void Dump (CDumpContext & dc) const;
#endif

protected :

    // Generated message map functions
protected :
    //{{AFX_MSG(CEditPadRichView)
    afx_msg void OnContextMenu (CWnd * pWnd, CPoint point);
    afx_msg void OnViewOptions ();
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
    afx_msg void OnFileReload ();
    afx_msg void OnUpdateFileReload (CCmdUI* pCmdUI);
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP ()
  };

#ifndef _DEBUG                  // debug version in editpadview.cpp
inline CEditPadRichDoc *CEditPadRichView::
GetDocument ()
{
  return (CEditPadRichDoc*) m_pDocument;
}
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // __EPRICVW_INCLUDED__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -