huatudoc.h

来自「主要包含vc++下MFC环境下的对话框等编集的学生查询系统及相关的画图计算程序」· C头文件 代码 · 共 68 行

H
68
字号
// huatuDoc.h : interface of the CHuatuDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_HUATUDOC_H__228F2107_04E2_46C5_9F97_685734193D5B__INCLUDED_)
#define AFX_HUATUDOC_H__228F2107_04E2_46C5_9F97_685734193D5B__INCLUDED_
#include "Huatu.h"
#include "HuatuDoc.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct SRect
{CPoint pointfrom;
 CPoint pointto;
 UINT udrawtype;
};

class CHuatuDoc : public CDocument
{
protected: // create from serialization only
	CHuatuDoc();
	DECLARE_DYNCREATE(CHuatuDoc)

// Attributes
public:
	SRect m_srectangles[100];

// Operations
public:

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

// Implementation
public:
	bool m_blbuttondown;
	UINT m_udrawtype;
	int m_nrectindex;
	virtual ~CHuatuDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CHuatuDoc)
	afx_msg void OnDraw();
	afx_msg void OnDrawLine();
	afx_msg void OnDrawCircle();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_HUATUDOC_H__228F2107_04E2_46C5_9F97_685734193D5B__INCLUDED_)

⌨️ 快捷键说明

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