www.pudn.com > imagescale---raw.zip > ImageScaleDialog.cpp


// ImageScaleDialog.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "ImgScale.h" 
#include "ImageScaleDialog.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CImageScaleDialog dialog 
 
 
CImageScaleDialog::CImageScaleDialog(CWnd* pParent /*=NULL*/) 
	: CDialog(CImageScaleDialog::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CImageScaleDialog) 
	m_fScalex = 0.0f; 
	m_fScaley = 0.0f; 
	m_nQuality = -1; 
	//}}AFX_DATA_INIT 
} 
 
 
void CImageScaleDialog::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CImageScaleDialog) 
	DDX_Text(pDX, IDC_EDIT_W, m_fScalex); 
	DDV_MinMaxFloat(pDX, m_fScalex, 0.f, 100.f); 
	DDX_Text(pDX, IDC_EDIT_H, m_fScaley); 
	DDV_MinMaxFloat(pDX, m_fScaley, 0.f, 100.f); 
	DDX_Radio(pDX, IDC_RADIO1, m_nQuality); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CImageScaleDialog, CDialog) 
	//{{AFX_MSG_MAP(CImageScaleDialog) 
		// NOTE: the ClassWizard will add message map macros here 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CImageScaleDialog message handlers