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

📄 gamesetup.cpp

📁 随手写的小游戏
💻 CPP
字号:
// GameSetup.cpp : implementation file
//

#include "stdafx.h"
#include "MyGame.h"
#include "GameSetup.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CGameSetup

IMPLEMENT_DYNAMIC(CGameSetup, CPropertySheet)

CGameSetup::CGameSetup(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
	m_pParentWnd = pParentWnd;
	AddPages();
}

CGameSetup::CGameSetup(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
	m_pParentWnd = pParentWnd;
	AddPages();
}

CGameSetup::~CGameSetup()
{
}


BEGIN_MESSAGE_MAP(CGameSetup, CPropertySheet)
	//{{AFX_MSG_MAP(CGameSetup)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CGameSetup message handlers

void CGameSetup::AddPages()
{
	AddPage(&m_PageSerialNo);
	AddPage(&m_PageHitIt);

}

BOOL CGameSetup::Create(CWnd  *pParent) 
{
	AddPages();
	return CPropertySheet::Create(pParent,
		DS_MODALFRAME | DS_3DLOOK | DS_CONTEXTHELP |DS_SETFONT | WS_POPUP | /*WS_VISIBLE | */WS_CAPTION|WS_SYSMENU,
		0);
}

⌨️ 快捷键说明

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