www.pudn.com > bmpstudy.rar > DlgGray.cpp


// DlgGray.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "exam7.h" 
#include "DlgGray.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlgGray dialog 
 
 
CDlgGray::CDlgGray(CWnd* pParent /*=NULL*/) 
	: CDialog(CDlgGray::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CDlgGray) 
	m_nX1 = 0; 
	m_nX2 = 0; 
	m_nY1 = 0; 
	m_nY2 = 0; 
	//}}AFX_DATA_INIT 
} 
 
 
void CDlgGray::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CDlgGray) 
	DDX_Text(pDX, IDC_X1, m_nX1); 
	DDV_MinMaxInt(pDX, m_nX1, 0, 255); 
	DDX_Text(pDX, IDC_X2, m_nX2); 
	DDV_MinMaxInt(pDX, m_nX2, 0, 255); 
	DDX_Text(pDX, IDC_Y1, m_nY1); 
	DDV_MinMaxInt(pDX, m_nY1, 0, 255); 
	DDX_Text(pDX, IDC_Y2, m_nY2); 
	DDV_MinMaxInt(pDX, m_nY2, 0, 255); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CDlgGray, CDialog) 
	//{{AFX_MSG_MAP(CDlgGray) 
		// NOTE: the ClassWizard will add message map macros here 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlgGray message handlers