gamesetup.cpp
来自「随手写的小游戏」· C++ 代码 · 共 61 行
CPP
61 行
// 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 + =
减小字号Ctrl + -
显示快捷键?