gusucode.com > VC 实现的二维小波变换用于图像去噪、压缩等源码程序 > Daubechiesdlg.cpp

    // Daubechiesdlg.cpp : implementation file
//

#include "stdafx.h"
#include "小波变换.h"
#include "Daubechiesdlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDaubechiesdlg dialog


CDaubechiesdlg::CDaubechiesdlg(CWnd* pParent /*=NULL*/)
	: CDialog(CDaubechiesdlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDaubechiesdlg)
	m_nlength = 4;
	//}}AFX_DATA_INIT
}


void CDaubechiesdlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDaubechiesdlg)
	DDX_Control(pDX, IDC_SPINLENGTH, m_spinlength);
	DDX_Text(pDX, IDC_NLENGTH, m_nlength);
	DDV_MinMaxUInt(pDX, m_nlength, 1, 10);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDaubechiesdlg, CDialog)
	//{{AFX_MSG_MAP(CDaubechiesdlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDaubechiesdlg message handlers

BOOL CDaubechiesdlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_spinlength.SetRange(1,10);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}