📄 monidukaqi.cpp
字号:
// MoniDuKaQi.cpp : implementation file
//
#include "stdafx.h"
#include "SEWORK.h"
#include "MoniDuKaQi.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMoniDuKaQi dialog
CMoniDuKaQi::CMoniDuKaQi(CWnd* pParent /*=NULL*/)
: CDialog(CMoniDuKaQi::IDD, pParent)
{
//{{AFX_DATA_INIT(CMoniDuKaQi)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_shurubianhao.Empty();
}
void CMoniDuKaQi::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMoniDuKaQi)
DDX_Control(pDX, IDC_STATIC_DURUBIANHAO, m_shuru);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CMoniDuKaQi, CDialog)
//{{AFX_MSG_MAP(CMoniDuKaQi)
ON_BN_CLICKED(IDC_BUTTON_NUM1, OnButtonNum1)
ON_BN_CLICKED(IDC_BUTTON_NUM0, OnButtonNum0)
ON_BN_CLICKED(IDC_BUTTON_NUM2, OnButtonNum2)
ON_BN_CLICKED(IDC_BUTTON_NUM3, OnButtonNum3)
ON_BN_CLICKED(IDC_BUTTON_NUM4, OnButtonNum4)
ON_BN_CLICKED(IDC_BUTTON_NUM5, OnButtonNum5)
ON_BN_CLICKED(IDC_BUTTON_NUM6, OnButtonNum6)
ON_BN_CLICKED(IDC_BUTTON_NUM7, OnButtonNum7)
ON_BN_CLICKED(IDC_BUTTON_NUM8, OnButtonNum8)
ON_BN_CLICKED(IDC_BUTTON_NUM9, OnButtonNum9)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMoniDuKaQi message handlers
void CMoniDuKaQi::OnButtonNum1()
{
// TODO: Add your control notification handler code here
m_shurubianhao+="1";
m_shuru.SetWindowText(m_shurubianhao);
}
void CMoniDuKaQi::OnButtonNum0()
{
// TODO: Add your control notification handler code here
m_shurubianhao+="0";
m_shuru.SetWindowText(m_shurubianhao);
}
void CMoniDuKaQi::OnButtonNum2()
{
// TODO: Add your control notification handler code here
m_shurubianhao+="2";
m_shuru.SetWindowText(m_shurubianhao);
}
void CMoniDuKaQi::OnButtonNum3()
{
// TODO: Add your control notification handler code here
m_shurubianhao+="3";
m_shuru.SetWindowText(m_shurubianhao);
}
void CMoniDuKaQi::OnButtonNum4()
{
// TODO: Add your control notification handler code here
m_shurubianhao+="4";
m_shuru.SetWindowText(m_shurubianhao);
}
void CMoniDuKaQi::OnButtonNum5()
{
// TODO: Add your control notification handler code here
m_shurubianhao+="5";
m_shuru.SetWindowText(m_shurubianhao);
}
void CMoniDuKaQi::OnButtonNum6()
{
// TODO: Add your control notification handler code here
m_shurubianhao+="6";
m_shuru.SetWindowText(m_shurubianhao);
}
void CMoniDuKaQi::OnButtonNum7()
{
// TODO: Add your control notification handler code here
m_shurubianhao+="7";
m_shuru.SetWindowText(m_shurubianhao);
}
void CMoniDuKaQi::OnButtonNum8()
{
// TODO: Add your control notification handler code here
m_shurubianhao+="8";
m_shuru.SetWindowText(m_shurubianhao);
}
void CMoniDuKaQi::OnButtonNum9()
{
// TODO: Add your control notification handler code here
m_shurubianhao+="9";
m_shuru.SetWindowText(m_shurubianhao);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -