www.pudn.com > ImgSeg.rar > DlgThreshold.cpp


// DlgThreshold.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "ImgSeg.h" 
#include "DlgThreshold.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlgThreshold dialog 
 
 
CDlgThreshold::CDlgThreshold(CWnd* pParent /*=NULL*/) 
	: CDialog(CDlgThreshold::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CDlgThreshold) 
	m_iThreshold = 0; 
	//}}AFX_DATA_INIT 
} 
 
 
void CDlgThreshold::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CDlgThreshold) 
	DDX_Text(pDX, IDC_THRESHOLD, m_iThreshold); 
	DDV_MinMaxInt(pDX, m_iThreshold, 0, 255); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CDlgThreshold, CDialog) 
	//{{AFX_MSG_MAP(CDlgThreshold) 
	ON_BN_CLICKED(IDC_OK, OnOk) 
	ON_BN_CLICKED(IDC_CANCEL, Cancel) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlgThreshold message handlers 
 
void CDlgThreshold::OnOk()  
{ 
	// TODO: Add your control notification handler code here 
 
	OnOK(); 
	 
} 
 
void CDlgThreshold::Cancel()  
{ 
	// TODO: Add your control notification handler code here 
 
	OnCancel(); 
	 
}