sq3view.h

来自「本程序模拟细胞的自我繁殖」· C头文件 代码 · 共 79 行

H
79
字号
// Sq3View.h : interface of the CSq3View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SQ3VIEW_H__0714AE0E_AF0A_4F16_A74A_799717C06879__INCLUDED_)
#define AFX_SQ3VIEW_H__0714AE0E_AF0A_4F16_A74A_799717C06879__INCLUDED_

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


class CSq3View : public CView
{
protected: // create from serialization only
	CSq3View();
	DECLARE_DYNCREATE(CSq3View)

// Attributes
public:
	CSq3Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSq3View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	//}}AFX_VIRTUAL

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

protected:

    bool running;
    bool really_fast;
    float its_per_second; // how fast are we running?

    clock_t old_time,new_time;

    float scale;

// Generated message map functions
protected:
	//{{AFX_MSG(CSq3View)
	afx_msg void OnActionsRun();
	afx_msg void OnUpdateActionsRun(CCmdUI* pCmdUI);
	afx_msg void OnActionsStop();
	afx_msg void OnUpdateActionsStop(CCmdUI* pCmdUI);
	afx_msg void OnActionsReallyfast();
	afx_msg void OnUpdateActionsReallyfast(CCmdUI* pCmdUI);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnFileNew();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in Sq3View.cpp
inline CSq3Doc* CSq3View::GetDocument()
   { return (CSq3Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_SQ3VIEW_H__0714AE0E_AF0A_4F16_A74A_799717C06879__INCLUDED_)

⌨️ 快捷键说明

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