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

📄 sh.h

📁 应用程序向导已为您创建了这个 SH 应用程序。此应用程序不仅演示 Microsoft 基础类的基本使用方法
💻 H
字号:
// SH.h : PROJECT_NAME 应用程序的主头文件
//

#pragma once

#ifndef __AFXWIN_H__
	#error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"
#endif

#include "resource.h"		// 主符号
#include "DirectManage.h"
#include "PublicFun.h"
#include "PlayGame.h"

// CSHApp:
// 有关此类的实现,请参阅 SH.cpp
//

class CSHApp : public CWinApp
{
public:
	CSHApp();

// 重写
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance(void);
	virtual int Run(void);	
//自定义
public:
	int m_iWindowMode;
	int m_iScreenWidth;
	int m_iScreenHeight;
	RECT m_rectWindow;//窗口显示的目标矩阵
	RECT m_RectScreen;	//全屏显示的目标矩形
	POINT m_pointClient; //窗口和客户区的偏移
	BOOL m_bIsActive; 
	BOOL m_bShutDown;
	BOOL InitConfig();
	CString m_strRootPath;
	CDirectManage m_CDirectManage;
	CPublicFun m_CPublicFun;
	CPlayGame m_CPlayGame;
	void  SetActive(BOOL bActive) { m_bIsActive = bActive;};
	void  ShutDown() { m_bShutDown = TRUE; };

// 实现
	DECLARE_MESSAGE_MAP()
};

extern CSHApp theApp;

⌨️ 快捷键说明

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