setparamtdlg.cpp

来自「集装箱号码演示程序1.0完美版本」· C++ 代码 · 共 72 行

CPP
72
字号
// SetParamtDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Locate.h"
#include "SetParamtDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSetParamtDlg dialog


CSetParamtDlg::CSetParamtDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CSetParamtDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSetParamtDlg)
	m_lMaxDist = 0;
	m_lMinDotNum = 0;
	m_nMaxOffset = 0;
	m_nMaxGap = 0;
	m_nMinHeight = 0;
	m_nMinWidth = 0;
	//}}AFX_DATA_INIT
}


void CSetParamtDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetParamtDlg)
	DDX_Text(pDX, IDC_EDIT1, m_lMaxDist);
	DDX_Text(pDX, IDC_EDIT2, m_lMinDotNum);
	DDX_Text(pDX, IDC_EDIT3, m_nMaxOffset);
	DDX_Text(pDX, IDC_EDIT4, m_nMaxGap);
	DDX_Text(pDX, IDC_EDIT5, m_nMinHeight);
	DDX_Text(pDX, IDC_EDIT6, m_nMinWidth);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CSetParamtDlg message handlers

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

void CSetParamtDlg::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData();

	CDialog::OnOK();
}

⌨️ 快捷键说明

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