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

📄 mfc_funnymousedlg.h

📁 用MFC实现的一个有趣的小游戏。我也是从别的地方下载的
💻 H
字号:
// MFC_FunnyMouseDlg.h : header file
//

#if !defined(AFX_MFC_FUNNYMOUSEDLG_H__85AE1A06_8CD5_11D5_B526_B17BA558EF03__INCLUDED_)
#define AFX_MFC_FUNNYMOUSEDLG_H__85AE1A06_8CD5_11D5_B526_B17BA558EF03__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CMFC_FunnyMouseDlg dialog

class CMFC_FunnyMouseDlg : public CDialog
{
// Construction
public:
	CMFC_FunnyMouseDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMFC_FunnyMouseDlg)
	enum { IDD = IDD_MFC_FUNNYMOUSE_DIALOG };
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMFC_FunnyMouseDlg)
	public:
	virtual BOOL DestroyWindow();
	//}}AFX_VIRTUAL

// Implementation
protected:
	CRect m_rcDrawField; //对话框上显示位图的位置
	int m_nEllapse; //定时器的时间间隔
	int m_nGradient;//标识显示字符串"Thanks For Panda_Wang"的亮度,0 -- 最亮
	int m_nStartPos; //标识在对话框何位置拷贝显示DrawBmp()函数画的位图,自下向上显示
	int m_nDelay; //已停顿的时间

	void DrawBmp(); //画位图,并保存在m_pBitmap中
	
	CBrush* m_pBrush;
	CFont *m_pFont;
	CBitmap * m_pBitmap;

	BOOL m_bShowingAuthor; //标识是否显示了作者信息
	CRect rcSmall; //不显示作者信息时的对话框大小
	CRect rcLarge; //显示作者信息时的对话框大小
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMFC_FunnyMouseDlg)
	afx_msg void OnAuthor();
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnClear();
	afx_msg void OnExit();
	virtual void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_MFC_FUNNYMOUSEDLG_H__85AE1A06_8CD5_11D5_B526_B17BA558EF03__INCLUDED_)

⌨️ 快捷键说明

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