www.pudn.com > backmode824.rar > TSetXY.cpp


// TSetXY.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "backmodel.h" 
#include "TSetXY.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// TSetXY dialog 
 
 
TSetXY::TSetXY(CWnd* pParent /*=NULL*/) 
	: CDialog(TSetXY::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(TSetXY) 
	m_nPointX = 0; 
	m_nPointY = 0; 
	//}}AFX_DATA_INIT 
} 
 
 
void TSetXY::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(TSetXY) 
	DDX_Text(pDX, IDC_EDIT_X, m_nPointX); 
	DDV_MinMaxInt(pDX, m_nPointX, 0, 1024); 
	DDX_Text(pDX, IDC_EDIT_Y, m_nPointY); 
	DDV_MinMaxInt(pDX, m_nPointY, 0, 1024); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(TSetXY, CDialog) 
	//{{AFX_MSG_MAP(TSetXY) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// TSetXY message handlers 
 
void TSetXY::OnOK()  
{ 
	// TODO: Add extra validation here 
	Invalidate(FALSE);	 
	CDialog::OnOK(); 
}