mainfrm.h

来自「Windows CE 下Kill 游戏的源代码。」· C头文件 代码 · 共 60 行

H
60
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?