textview.h
来自「混乱竞技场的全套代码,客户端资源可以网上搜」· C头文件 代码 · 共 62 行
H
62 行
#if !defined(AFX_TEXTVIEW_H__F2BD9D3D_C3E8_4BFD_B493_D7EFE6F17224__INCLUDED_)
#define AFX_TEXTVIEW_H__F2BD9D3D_C3E8_4BFD_B493_D7EFE6F17224__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TextView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// TextView view
class TextView : public CEditView
{
CString m_file;
protected:
TextView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(TextView)
// Attributes
public:
// Operations
public:
BOOL Save();
BOOL LoadFile(LPCSTR strFile);
BOOL SaveToFile(LPCSTR strFile);
BOOL SetWorkFile(LPCSTR strFile);
BOOL Init();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(TextView)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~TextView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(TextView)
afx_msg void OnChange();
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TEXTVIEW_H__F2BD9D3D_C3E8_4BFD_B493_D7EFE6F17224__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?