conset.cpp

来自「这是一个俄罗斯方块的游戏」· C++ 代码 · 共 59 行

CPP
59
字号
// ConSet.cpp : implementation file
//

#include "stdafx.h"
#include "俄罗斯方块.h"
#include "ConSet.h"

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

/////////////////////////////////////////////////////////////////////////////
// CConSet dialog


CConSet::CConSet(CWnd* pParent /*=NULL*/)
	: CDialog(CConSet::IDD, pParent)
{
	//{{AFX_DATA_INIT(CConSet)

	//}}AFX_DATA_INIT
}


void CConSet::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CConSet)
	DDX_Control(pDX, IDC_CONTURN, m_conturn);
	DDX_Control(pDX, IDC_CONRIGHT, m_conright);
	DDX_Control(pDX, IDC_CONPAUSE, m_conpause);
	DDX_Control(pDX, IDC_CONLEFT, m_conleft);
	DDX_Control(pDX, IDC_CONDOWN, m_condown);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CConSet, CDialog)
	//{{AFX_MSG_MAP(CConSet)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CConSet message handlers


BOOL CConSet::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Add your specialized code here and/or call the base class
	if(pMsg->message==WM_KEYDOWN)
	{
	if(pMsg->wParam==VK_RETURN || pMsg->wParam==VK_ESCAPE) return 1;
	}
	return CDialog::PreTranslateMessage(pMsg);
}

⌨️ 快捷键说明

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