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

📄 gameapp.cpp

📁 用vc++写的迷宫基于图形的算法,可以自己编辑地图,并具有保存地图的功能
💻 CPP
字号:
// GameApp.cpp: implementation of the CGameApp class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "resource.h"
#include "GameApp.h"
#include "GameFrm.h"
#include "Splash.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CGameApp myApp;
CGameApp::CGameApp()
{

}

CGameApp::~CGameApp()
{

}
BOOL CGameApp::InitInstance()
{
	// CG: The following block was added by the Splash Screen component.\	{\		CCommandLineInfo cmdInfo;\		ParseCommandLine(cmdInfo);\\		CSplashWnd::EnableSplashScreen(cmdInfo.m_bShowSplash);\	}
  m_pGameFrm=new CMainFrame();
 

  m_pGameFrm->ShowWindow(true);
  m_pGameFrm->UpdateWindow();
  m_pMainWnd=m_pGameFrm;
  return true;
}

BOOL CGameApp::PreTranslateMessage(MSG* pMsg)
{
	// CG: The following lines were added by the Splash Screen component.	if (CSplashWnd::PreTranslateAppMessage(pMsg))		return TRUE;	return CWinApp::PreTranslateMessage(pMsg);
}

⌨️ 快捷键说明

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