set.cpp

来自「在数控机床的坐标文件」· C++ 代码 · 共 76 行

CPP
76
字号
// set.cpp : implementation file
//

#include "stdafx.h"
#include "NC.h"
#include "set.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Cset dialog


Cset::Cset(CWnd* pParent /*=NULL*/)
	: CDialog(Cset::IDD, pParent)
{
	//{{AFX_DATA_INIT(Cset)
	m_l1 = 100;
	m_l2 = 122;
	m_l3 = 23;
	m_l4 = 10;
	m_l5 = 20;
	m_l6 = 30;
	m_C = 0.5;
	m_U = 1;
	m_l = 291;
	//}}AFX_DATA_INIT
}


void Cset::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Cset)
	DDX_Text(pDX, IDC_EDIT1, m_l1);
	DDX_Text(pDX, IDC_EDIT2, m_l2);
	DDX_Text(pDX, IDC_EDIT3, m_l3);
	DDX_Text(pDX, IDC_EDIT4, m_l4);
	DDX_Text(pDX, IDC_EDIT5, m_l5);
	DDX_Text(pDX, IDC_EDIT6, m_l6);
	DDX_Text(pDX, IDC_EDIT7, m_C);
	DDX_Text(pDX, IDC_EDIT8, m_U);
	DDX_Text(pDX, IDC_EDIT9, m_l);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Cset, CDialog)
	//{{AFX_MSG_MAP(Cset)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cset message handlers

BOOL Cset::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void Cset::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(TRUE);
	CDialog::OnOK();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?