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

📄 window.h

📁 人最近写的一个飞行类的游戏,主要目的是为了锻炼一下自己,提高编程水平,由于本人C++基础不是很好,所以程序中有很多地方设计的不是很合理,希望大家能够多提建议!
💻 H
字号:
// Window.h: interface for the CWindow class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WINDOW_H__978236E6_74DE_46C4_A915_CA36341894E7__INCLUDED_)
#define AFX_WINDOW_H__978236E6_74DE_46C4_A915_CA36341894E7__INCLUDED_

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

#include <windows.h>
#include "flyres.h"
#include "macro.h"
#include <stdlib.h>
#include <stdio.h>
#include <time.h>

class CWindow  
{
public:
	CWindow(HINSTANCE hInstance,int nCmdShow);
	CWindow();
	virtual ~CWindow();
	HWND GetHwnd();
	BOOL Create();
	static LRESULT CALLBACK WinProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
	static BOOL bActive;
protected:
	virtual BOOL InitApplication();
	virtual BOOL InitInstance();
	HINSTANCE m_instance;
	int m_CmdShow;

private:
	HWND m_hwnd;
};

#endif // !defined(AFX_WINDOW_H__978236E6_74DE_46C4_A915_CA36341894E7__INCLUDED_)

⌨️ 快捷键说明

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