www.pudn.com > Fractal_.rar > FractalDialog2.cpp


// 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 
	 
}