⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 set.cpp

📁 关于分形L系统的应用
💻 CPP
字号:
// Set.cpp : implementation file
//

#include "stdafx.h"
#include "fxs.h"
#include "Set.h"

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


/////////////////////////////////////////////////////////////////////////////
// CSet dialog


CSet::CSet(CWnd* pParent /*=NULL*/)
	: CDialog(CSet::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSet)
	m_suofang = 0.0;
	m_count = 0;
	m_yd = 0;
	m_fenjiao = 0.0;
	m_suanfa = -1;
	m_bili = 0.0;
	m_rule = _T("");
	//}}AFX_DATA_INIT

}


void CSet::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSet)
	DDX_Text(pDX, IDC_SUOFANG, m_suofang);
	DDV_MinMaxDouble(pDX, m_suofang, 1.e-002, 100.);
	DDX_Text(pDX, IDC_COUNT, m_count);
	DDV_MinMaxUInt(pDX, m_count, 0, 15);
	DDX_Text(pDX, IDC_YIDONG, m_yd);
	DDX_Text(pDX, IDC_FENJIAO, m_fenjiao);
	DDV_MinMaxDouble(pDX, m_fenjiao, 1.e-002, 90.);
	DDX_Radio(pDX, IDC_RADIO1, m_suanfa);
	DDX_Text(pDX, IDC_BILI, m_bili);
	DDV_MinMaxDouble(pDX, m_bili, 1.e-002, 0.999);
	DDX_Text(pDX, IDC_LSRULE, m_rule);
	//}}AFX_DATA_MAP
}

void CSet::Set(int suanfa,double fenjiao,int yd, double suofang,int count,double bili,CString rule)
{
		m_count = count;
		m_fenjiao =	fenjiao;
		m_suofang = suofang;
		m_yd = yd;
		m_suanfa = suanfa;
		m_bili = bili;
		m_rule = rule;
}


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

/////////////////////////////////////////////////////////////////////////////
// CSet message handlers



BOOL CSet::PreTranslateMessage(MSG* pMsg)
{
	// CG: The following block was added by the ToolTips component.	{		// Let the ToolTip process this message.		m_tooltip.RelayEvent(pMsg);	}	return CDialog::PreTranslateMessage(pMsg);	// CG: This was added by the ToolTips component.
}

BOOL CSet::OnInitDialog()
{
	CDialog::OnInitDialog();	// CG: This was added by the ToolTips component.	// CG: The following block was added by the ToolTips component.	{		// Create the ToolTip control.		m_tooltip.Create(this);		m_tooltip.Activate(TRUE);		// TODO: Use one of the following forms to add controls:		// m_tooltip.AddTool(GetDlgItem(IDC_<name>), <string-table-id>);		// m_tooltip.AddTool(GetDlgItem(IDC_<name>), "<text>");	}	return TRUE;	// CG: This was added by the ToolTips component.
}

⌨️ 快捷键说明

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