📄 sjc.cpp
字号:
// sjc.cpp : implementation file
//
#include "stdafx.h"
#include "hellor14.h"
#include "sjc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// sjc dialog
sjc::sjc(CWnd* pParent /*=NULL*/)
: CDialog(sjc::IDD, pParent)
{
//{{AFX_DATA_INIT(sjc)
m_input1 = _T("");
m_input2 = _T("");
m_measure2 = 0.0;
m_measure1 = 0.0;
m_maxtolerance = 0.0;
m_value1 = 0.0;
m_value2 = 0.0;
//}}AFX_DATA_INIT
}
void sjc::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(sjc)
DDX_CBString(pDX, IDC_COMBO1, m_input1);
DDX_CBString(pDX, IDC_COMBO2, m_input2);
DDX_Text(pDX, IDC_EDIT2, m_measure2);
DDX_Text(pDX, IDC_EDIT1, m_measure1);
DDX_Text(pDX, IDC_EDIT3, m_maxtolerance);
DDX_Text(pDX, IDC_EDIT4, m_value1);
DDX_Text(pDX, IDC_EDIT5, m_value2);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(sjc, CDialog)
//{{AFX_MSG_MAP(sjc)
ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// sjc message handlers
void sjc::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
void sjc::OnChangeEdit1()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -