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

📄 mfc_smallpiecesview.h

📁 元胞自动机产生的蚂蚁高速公路现象
💻 H
字号:
// MFC_smallpiecesView.h : interface of the CMFC_smallpiecesView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MFC_SMALLPIECESVIEW_H__DD15834F_AF3F_4F76_B07D_2BD00140F526__INCLUDED_)
#define AFX_MFC_SMALLPIECESVIEW_H__DD15834F_AF3F_4F76_B07D_2BD00140F526__INCLUDED_

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


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

// Attributes
public:
	CMFC_smallpiecesDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMFC_smallpiecesView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType = adjustBorder);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	UINT m_nTimer;
	int m_direction;	//ant有4个运动方向
	int y;
	int x;
	CBrush m_bgBrush;
	CDC m_memDC;
	CRect m_mapRect;
	CBitmap m_bitmap;
	//{{AFX_MSG(CMFC_smallpiecesView)
	afx_msg void OnPaint();
	afx_msg void OnMenuPaint();
	afx_msg void OnAnt();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnStop();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in MFC_smallpiecesView.cpp
inline CMFC_smallpiecesDoc* CMFC_smallpiecesView::GetDocument()
   { return (CMFC_smallpiecesDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MFC_SMALLPIECESVIEW_H__DD15834F_AF3F_4F76_B07D_2BD00140F526__INCLUDED_)

⌨️ 快捷键说明

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