⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 disrepairinput.cpp

📁 码头手持机项目,用于统计集装箱,轮船的情况,手持机采用S3C2440处理器,数据传输采用2.4G无线,上位机用VC编写
💻 CPP
字号:
// DisrepairInput.cpp : implementation file
//

#include "stdafx.h"
#include "CTSClient.h"
#include "DisrepairInput.h"

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

/////////////////////////////////////////////////////////////////////////////
// DisrepairInput dialog


DisrepairInput::DisrepairInput(CWnd* pParent /*=NULL*/)
	: CDialog(DisrepairInput::IDD, pParent)
{
	//{{AFX_DATA_INIT(DisrepairInput)
	m_input1 = _T("");
	m_input2 = _T("");

	modify = false;
	disrepairInputString = _T("");
	//}}AFX_DATA_INIT
}


void DisrepairInput::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(DisrepairInput)
	DDX_Text(pDX, IDC_EDIT1, m_input1);
	DDX_Text(pDX, IDC_EDIT2, m_input2);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(DisrepairInput, CDialog)
	//{{AFX_MSG_MAP(DisrepairInput)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// DisrepairInput message handlers

void DisrepairInput::OnButton1() 
{
	// TODO: Add your control notification handler code here
	modify = true;
    UpdateData(true);
	
	if (m_input1 == VT_EMPTY){
		MessageBox(_T("请先输入残损的长度!"),_T("出错提示"));
		return;
	}
	
	if (m_input2 == VT_EMPTY){
		MessageBox(_T("请先输入残损的宽度!"),_T("出错提示"));
		return;
	}

	disrepairInputString = m_input1 + "cmX" + m_input2 + "cm";
	CDialog::OnOK();
}

void DisrepairInput::OnButton4() 
{
	// TODO: Add your control notification handler code here
	modify = false;
	CDialog::OnCancel();
}

⌨️ 快捷键说明

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