You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
933 B
C++

#include "stdafx.h"
#include "LaiPuLaser.h"
#include "afxdialogex.h"
#include "DlgCreatOffsetTable.h"
#include "MsgBox.h"
IMPLEMENT_DYNAMIC(CDlgCreatOffsetTable, CDialogEx)
BEGIN_MESSAGE_MAP(CDlgCreatOffsetTable, CDialogEx)
ON_BN_CLICKED(IDOK,OnBnClickedOk)
END_MESSAGE_MAP()
CDlgCreatOffsetTable::CDlgCreatOffsetTable(CWnd* pParent /*=NULL*/)
: CDialogEx(CDlgCreatOffsetTable::IDD, pParent)
{
}
CDlgCreatOffsetTable::~CDlgCreatOffsetTable()
{
}
void CDlgCreatOffsetTable::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Text(pDX,IDC_NAME_EDIT,m_EditName);
}
BOOL CDlgCreatOffsetTable::OnInitDialog()
{
CDialogEx::OnInitDialog();
UpdateData(FALSE);
return TRUE;
}
void CDlgCreatOffsetTable::OnBnClickedOk()
{
UpdateData(TRUE);
if(m_EditName == "")
{
CMsgBox MsgBox;
MsgBox.Show("Ãû³Æ²»ÄÜΪ¿Õ");
return;
}
OnOK();
}