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

📄 prop3.cpp

📁 用C++开发的一个人工神经网络小游戏
💻 CPP
字号:
// Prop3.cpp : implementation file
//

#include "stdafx.h"
#include "EludeObstacle.h"
#include "Prop3.h"

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

/////////////////////////////////////////////////////////////////////////////
// CProp3 property page

extern int start_x;
extern int start_y;
extern int ifShowDirection;
extern int ifShowSenceStar;
extern int ifShowDiagram;

IMPLEMENT_DYNCREATE(CProp3, CPropertyPage)

CProp3::CProp3() : CPropertyPage(CProp3::IDD)
{
	//{{AFX_DATA_INIT(CProp3)
	m_start_x = 0;
	m_start_y = 0;
	m_ifShowDirection = FALSE;
	m_ifShowSenceStar = FALSE;
	m_ifShowDiagram = FALSE;
	//}}AFX_DATA_INIT
}

CProp3::~CProp3()
{
}

void CProp3::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CProp3)
	DDX_Text(pDX, IDC_EDIT1, m_start_x);
	DDX_Text(pDX, IDC_EDIT4, m_start_y);
	DDX_Check(pDX, IDC_CHECK1, m_ifShowDirection);
	DDX_Check(pDX, IDC_CHECK2, m_ifShowSenceStar);
	DDX_Check(pDX, IDC_CHECK3, m_ifShowDiagram);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CProp3, CPropertyPage)
	//{{AFX_MSG_MAP(CProp3)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CProp3 message handlers

void CProp3::OnOK()
{
	// TODO: Add your specialized code here and/or call the base class
	UpdateData();

	start_x = m_start_x;
	start_y = m_start_y;
	ifShowDirection = m_ifShowDirection;
	ifShowSenceStar = m_ifShowSenceStar;
	ifShowDiagram = m_ifShowDiagram;

	CPropertyPage::OnOK();
}

void CProp3::init()
{
	m_start_x = start_x;
	m_start_y = start_y;
	m_ifShowDirection = ifShowDirection;
	m_ifShowSenceStar = ifShowSenceStar;
	m_ifShowDiagram = ifShowDiagram;
}

⌨️ 快捷键说明

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