📄 dlgkeyboard.cpp
字号:
// DlgKeyboard.cpp : implementation file
//
#include "stdafx.h"
#include "maintain.h"
#include "DlgKeyboard.h"
#include "mainfrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlgKeyboard dialog
CDlgKeyboard::CDlgKeyboard(CWnd* pParent /*=NULL*/)
: CDialog(CDlgKeyboard::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlgKeyboard)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CDlgKeyboard::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgKeyboard)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlgKeyboard, CDialog)
//{{AFX_MSG_MAP(CDlgKeyboard)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
ON_BN_CLICKED(IDC_BUTTON5, OnButton5)
ON_BN_CLICKED(IDC_BUTTON6, OnButton6)
ON_BN_CLICKED(IDC_BUTTON7, OnButton7)
ON_BN_CLICKED(IDC_BUTTON8, OnButton8)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDlgKeyboard message handlers
void CDlgKeyboard::OnButton2() //+1
{
// TODO: Add your control notification handler code here
((CMainFrame*)AfxGetMainWnd())->OnKeyboard(1);
}
void CDlgKeyboard::OnButton1() //↑
{
// TODO: Add your control notification handler code here
((CMainFrame*)AfxGetMainWnd())->OnKeyboard(2);
}
void CDlgKeyboard::OnButton3() //-1
{
// TODO: Add your control notification handler code here
((CMainFrame*)AfxGetMainWnd())->OnKeyboard(3);
}
void CDlgKeyboard::OnButton4() //esc
{
// TODO: Add your control notification handler code here
((CMainFrame*)AfxGetMainWnd())->OnKeyboard(4);
}
void CDlgKeyboard::OnButton5() //←
{
// TODO: Add your control notification handler code here
((CMainFrame*)AfxGetMainWnd())->OnKeyboard(5);
}
void CDlgKeyboard::OnButton6() //↓
{
// TODO: Add your control notification handler code here
((CMainFrame*)AfxGetMainWnd())->OnKeyboard(6);
}
void CDlgKeyboard::OnButton7() //→
{
// TODO: Add your control notification handler code here
((CMainFrame*)AfxGetMainWnd())->OnKeyboard(7);
}
void CDlgKeyboard::OnButton8() //Enter
{
// TODO: Add your control notification handler code here
((CMainFrame*)AfxGetMainWnd())->OnKeyboard(8);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -