cellsview.h

来自「用于医学专业等相关方面对细胞的观察与分析.得到的效果比较好.」· C头文件 代码 · 共 75 行

H
75
字号
// CellsView.h : interface of the CCellsView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CELLSVIEW_H__EC6CF22C_6674_11D5_B1FF_8A59F1DA9B59__INCLUDED_)
#define AFX_CELLSVIEW_H__EC6CF22C_6674_11D5_B1FF_8A59F1DA9B59__INCLUDED_

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


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

// Attributes
public:
	CCellsDoc* GetDocument();

// Operations
public:

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

// Implementation
public:
	int t;
	void Life();
	void Initial(int ID);
	int Temp[350][350];
	int Cells[350][350];
	virtual ~CCellsView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CCellsView)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnLife();
	afx_msg void OnRand();
	afx_msg void OnDead();
	afx_msg void OnDec();
	afx_msg void OnAdd();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in CellsView.cpp
inline CCellsDoc* CCellsView::GetDocument()
   { return (CCellsDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_CELLSVIEW_H__EC6CF22C_6674_11D5_B1FF_8A59F1DA9B59__INCLUDED_)

⌨️ 快捷键说明

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