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

📄 mainfrm.h

📁 Windows CE 下Kill 游戏的源代码。
💻 H
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__C73EA2BF_6C9B_4DCF_AE77_F2A98921BB1E__INCLUDED_)
#define AFX_MAINFRM_H__C73EA2BF_6C9B_4DCF_AE77_F2A98921BB1E__INCLUDED_

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

#include "ChildView.h"

class CMainFrame : public CFrameWnd
{
public:
	CMainFrame();
protected: 
	DECLARE_DYNCREATE(CMainFrame)
	HDC hdc,dhdc;
// Attributes
public:

// Operations
public:

public:
	virtual ~CMainFrame();

protected:
	int LoadSound();
	void ColorKey(int num);
	int CreateDDPla(int width, int height,  int num);
	void LoadBitmap();
	void CreateDirectShoud();
	void CreateDirectDraw();
	LPDIRECTSOUNDBUFFER SetupDirectSoundBuffer();
	int ReadWaveHeaderData();
	int ReadWaveFileData(LPCTSTR lpFilename);
	void EatFood();
	void Blood();
	void CreateFood();
	void FoodMove();
	void PigMove();
	void MonMove();
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_MAINFRM_H__C73EA2BF_6C9B_4DCF_AE77_F2A98921BB1E__INCLUDED_)

⌨️ 快捷键说明

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