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

📄 ex07_2doc.h

📁 内容包括从VC++的基本范例到项目开发的许多典型的例子。是VC++初学者不可多得的好资料
💻 H
字号:
// Ex07_2Doc.h : interface of the CEx07_2Doc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_EX07_2DOC_H__8A90F12A_51B5_4027_93D6_E8DB79B7EB44__INCLUDED_)
#define AFX_EX07_2DOC_H__8A90F12A_51B5_4027_93D6_E8DB79B7EB44__INCLUDED_

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

#include "Line.h"
class CEx07_2Doc : public CDocument
{
protected: // create from serialization only
	CEx07_2Doc();
	DECLARE_DYNCREATE(CEx07_2Doc)

// Attributes
public:
// Operations
public:
 CPtrList m_LineList;//直线链表
  CStringList m_strList;//保存除最后一行文字之外的各行文字
  CString m_strLastLine;//最后一行
  void ReInit();//重新初始化文档数据变量
  void DrawLine(CDC*pDC);
  void DrawText(CDC*pDC);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEx07_2Doc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CEx07_2Doc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_EX07_2DOC_H__8A90F12A_51B5_4027_93D6_E8DB79B7EB44__INCLUDED_)

⌨️ 快捷键说明

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