fractaldialog2.cpp

来自「《Visual C++小波变换技术与工程实践》作者:靳济芳。书上的代码。第9章:」· C++ 代码 · 共 71 行

CPP
71
字号
// FractalDialog2.cpp : implementation file
//

#include "stdafx.h"
#include "Fractal.h"
#include "FractalDialog2.h"

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

/////////////////////////////////////////////////////////////////////////////
// CFractalDialog2 dialog


CFractalDialog2::CFractalDialog2(CWnd* pParent /*=NULL*/)
	: CDialog(CFractalDialog2::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFractalDialog2)
	m_p = _T("");
	m_q = _T("");
	//}}AFX_DATA_INIT
}


void CFractalDialog2::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFractalDialog2)
	DDX_Text(pDX, IDC_EDIT_P, m_p);
	DDX_Text(pDX, IDC_EDIT_Q, m_q);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CFractalDialog2, CDialog)
	//{{AFX_MSG_MAP(CFractalDialog2)
	ON_EN_CHANGE(IDC_EDIT_P, OnChangeEditP)
	ON_EN_CHANGE(IDC_EDIT_Q, OnChangeEditQ)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFractalDialog2 message handlers

void CFractalDialog2::OnChangeEditP() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	UpdateData();
	p=atof(m_p);
	// TODO: Add your control notification handler code here
	
}

void CFractalDialog2::OnChangeEditQ() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	UpdateData();
	q=atof(m_q);
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?