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

📄 timerview.h

📁 一个控制字符移动的MFC程序
💻 H
字号:
// TimerView.h : interface of the CTimerView class
//
/////////////////////////////////////////////////////////////////////////////
#include "InputDlg.h"
#include "SportDlg.h"
#if !defined(AFX_TIMERVIEW_H__ECB9242C_1EA2_41E8_B387_347931DB6407__INCLUDED_)
#define AFX_TIMERVIEW_H__ECB9242C_1EA2_41E8_B387_347931DB6407__INCLUDED_

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


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

// Attributes
public:
	CTimerDoc* GetDocument();
	int x,y,red,green,blue,w,h,distance,speed1,n,speed;
	long height,width,desW,desH,h2,w2;
	CString s;
	bool flag;
	int m_nType;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTimerView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CTimerView)
	afx_msg void OnMove();
	afx_msg void OnBegin();
	afx_msg void OnQuit();
	afx_msg void OnStop();
	afx_msg void OnFont();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnUpdateFont(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMove(CCmdUI* pCmdUI);
	afx_msg void OnUpdateBegin(CCmdUI* pCmdUI);
	afx_msg void OnUpdateQuit(CCmdUI* pCmdUI);
	afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in TimerView.cpp
inline CTimerDoc* CTimerView::GetDocument()
   { return (CTimerDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_TIMERVIEW_H__ECB9242C_1EA2_41E8_B387_347931DB6407__INCLUDED_)

⌨️ 快捷键说明

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