📄 constant.cpp
字号:
// constant.cpp : implementation file
//
#include "stdafx.h"
#include "Calculator123.h"
#include "constant.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Cconstant dialog
Cconstant::Cconstant(CWnd* pParent /*=NULL*/)
: CDialog(Cconstant::IDD, pParent)
{
//{{AFX_DATA_INIT(Cconstant)
//}}AFX_DATA_INIT
}
void Cconstant::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Cconstant)
DDX_Control(pDX, IDC_M_VM, m_mvm);
DDX_Control(pDX, IDC_M_R, m_mr);
DDX_Control(pDX, IDC_M_NA, m_mna);
DDX_Control(pDX, IDC_M_KE, m_mke);
DDX_Control(pDX, IDC_M_G, m_mg);
DDX_Control(pDX, IDC_M_K, m_mk);
DDX_Control(pDX, IDC_M_E0, m_me);
DDX_Control(pDX, IDC_M_C, m_mc);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Cconstant, CDialog)
//{{AFX_MSG_MAP(Cconstant)
ON_BN_CLICKED(IDC_M_C, OnMC)
ON_BN_CLICKED(IDC_M_NA, OnMNa)
ON_BN_CLICKED(IDC_M_G, OnMG)
ON_BN_CLICKED(IDC_M_R, OnMR)
ON_BN_CLICKED(IDC_M_K, OnMK)
ON_BN_CLICKED(IDC_M_VM, OnMVm)
ON_BN_CLICKED(IDC_M_KE, OnMKe)
ON_BN_CLICKED(IDC_M_E0, OnME0)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Cconstant message handlers
void Cconstant::OnMC()
{
// TODO: Add your control notification handler code here
m_strN="LS";
}
void Cconstant::OnMNa()
{
// TODO: Add your control notification handler code here
m_strN="NA";
}
void Cconstant::OnMG()
{
// TODO: Add your control notification handler code here
m_strN="GR";
}
void Cconstant::OnMR()
{
// TODO: Add your control notification handler code here
m_strN="MG";
}
void Cconstant::OnMK()
{
// TODO: Add your control notification handler code here
m_strN="BC";
}
void Cconstant::OnMVm()
{
// TODO: Add your control notification handler code here
m_strN="VM";
}
void Cconstant::OnMKe()
{
// TODO: Add your control notification handler code here
m_strN="EF";
}
void Cconstant::OnME0()
{
// TODO: Add your control notification handler code here
m_strN="DC";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -