📄 conset.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -