📄 line.cpp
字号:
// Line.cpp : implementation file
//
#include "stdafx.h"
#include "数控插补程序.h"
#include "Line.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLine dialog
CLine::CLine(CWnd* pParent /*=NULL*/)
: CDialog(CLine::IDD, pParent)
{
//{{AFX_DATA_INIT(CLine)
m_x1 = 0.0;
m_x2 = 0.0;
m_y1 = 0.0;
m_step = 0.0;
m_y2 = 0.0;
//}}AFX_DATA_INIT
}
void CLine::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CLine)
DDX_Text(pDX, IDC_X1, m_x1);
DDV_MinMaxDouble(pDX, m_x1, -200., 200.);
DDX_Text(pDX, IDC_X2, m_x2);
DDV_MinMaxDouble(pDX, m_x2, -200., 200.);
DDX_Text(pDX, IDC_Y1, m_y1);
DDV_MinMaxDouble(pDX, m_y1, -150., 150.);
DDX_Text(pDX, IDC_STEP, m_step);
DDX_Text(pDX, IDC_Y2, m_y2);
DDV_MinMaxDouble(pDX, m_y2, -150., 150.);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CLine, CDialog)
//{{AFX_MSG_MAP(CLine)
ON_EN_CHANGE(IDC_STEP, OnChangeStep)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CLine message handlers
void CLine::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
void CLine::OnChangeStep()
{
// 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 + -