mydlgdoc.h

来自「一个vc编写的小游戏」· C头文件 代码 · 共 70 行

H
70
字号
// MYDLGDoc.h : interface of the CMYDLGDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYDLGDOC_H__FD602177_0F50_4CD8_B3F4_4DCB79211F86__INCLUDED_)
#define AFX_MYDLGDOC_H__FD602177_0F50_4CD8_B3F4_4DCB79211F86__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyLine.h"

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

// Attributes
public:

// Operations
public:

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

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMYDLGDoc)
	afx_msg void OnOptionsPen();
	afx_msg void OnUpdateOptionsPen(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
protected:
   CObArray m_ObArray;
public:
   int m_pWidth;
   int m_pStyle;
   COLORREF m_pColor;
   void AddLine(int Startx,int StartY,int EndX,int EndY,int Width,int Style,COLORREF Color,CString tu);
   CMyLine *GetLine(int index);
   int GetTotalLine();
   CString m_Tu;
   int m_qx,m_qy,m_zx,m_zy;
};

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

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

#endif // !defined(AFX_MYDLGDOC_H__FD602177_0F50_4CD8_B3F4_4DCB79211F86__INCLUDED_)

⌨️ 快捷键说明

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