www.pudn.com > Imagepro_4.rar > GetThreshold.cpp


// GetThreshold.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "Imagepro.h" 
#include "GetThreshold.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CGetThreshold dialog 
 
 
CGetThreshold::CGetThreshold(CWnd* pParent /*=NULL*/) 
	: CDialog(CGetThreshold::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CGetThreshold) 
	m_threshold = 0; 
	//}}AFX_DATA_INIT 
} 
 
 
void CGetThreshold::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CGetThreshold) 
	DDX_Text(pDX, IDC_EDIT1, m_threshold); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CGetThreshold, CDialog) 
	//{{AFX_MSG_MAP(CGetThreshold) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CGetThreshold message handlers 
 
void CGetThreshold::OnOK()  
{ 
	// TODO: Add extra validation here 
	UpdateData(TRUE);  
	CDialog::OnOK(); 
} 
 
void CGetThreshold::OnCancel()  
{ 
	// TODO: Add extra cleanup here 
	 
	CDialog::OnCancel(); 
}