// Length.cpp : implementation file
//
#include "stdafx.h"
#include "DtPro.h"
#include "Length.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLength dialog
CLength::CLength(CWnd* pParent /*=NULL*/)
: CDialog(CLength::IDD, pParent)
{
//{{AFX_DATA_INIT(CLength)
m_xDg = 0;
m_xSd = 0;
m_yDg = 0;
m_ySd = 0;
temp=0;
m_xDg1 = 0;
m_xSd1 = 0;
m_yDg1 = 0;
m_ySd1 = 0;
m_bUsed=0;
//}}AFX_DATA_INIT
}
void CLength::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CLength)
DDX_Text(pDX, IDC_EDIT1, m_xDg);
DDV_MinMaxInt(pDX, m_xDg, 0, 90);
DDX_Text(pDX, IDC_EDIT2, m_xSd);
DDV_MinMaxInt(pDX, m_xSd, 0, 60);
DDX_Text(pDX, IDC_EDIT3, m_yDg);
DDV_MinMaxInt(pDX, m_yDg, 0, 180);
DDX_Text(pDX, IDC_EDIT4, m_ySd);
DDV_MinMaxInt(pDX, m_ySd, 0, 60);
DDX_Text(pDX, IDC_EDIT5, m_xDg1);
DDV_MinMaxInt(pDX, m_xDg1, 0, 90);
DDX_Text(pDX, IDC_EDIT6, m_xSd1);
DDV_MinMaxInt(pDX, m_xSd1, 0, 60);
DDX_Text(pDX, IDC_EDIT7, m_yDg1);
DDV_MinMaxInt(pDX, m_yDg1, 0, 180);
DDX_Text(pDX, IDC_EDIT8, m_ySd1);
DDV_MinMaxInt(pDX, m_ySd1, 0, 60);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CLength, CDialog)
//{{AFX_MSG_MAP(CLength)
ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
ON_BN_CLICKED(IDC_RADIO4, OnRadio4)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CLength message handlers
void CLength::OnOK()
{
// TODO: Add extra validation here
temp=1;
CDialog::OnOK();
}
void CLength::OnCancel()
{
// TODO: Add extra cleanup here
temp=0;
CDialog::OnCancel();
}
void CLength::OnRadio3()
{
// TODO: Add your control notification handler code here
m_bUsed=0;
}
void CLength::OnRadio4()
{
// TODO: Add your control notification handler code here
m_bUsed=1;
}