Скачиваний:
26
Добавлен:
01.05.2014
Размер:
1.5 Кб
Скачать
// Init.cpp : implementation file
//

#include "stdafx.h"
#include "Laba1.h"
#include "Init.h"
#include ".\init.h"
#include ".\resource.h"


// cInit dialog

IMPLEMENT_DYNAMIC(cInit, CDialog)
cInit::cInit(CWnd* pParent /*=NULL*/)
	: CDialog(cInit::IDD, pParent)
	, X1(0)
	, Y1(0)
	, X2(0)
	, Y2(0)
	, X3(0)
	, Y3(0)
{
}

cInit::~cInit()
{
}

void cInit::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);

	DDX_Text(pDX, IDC_EDIT1, X1);
	DDX_Text(pDX, IDC_EDIT4, Y1);
	DDX_Text(pDX, IDC_EDIT2, X2);
	DDX_Text(pDX, IDC_EDIT5, Y2);
	DDX_Text(pDX, IDC_EDIT3, X3);
	DDX_Text(pDX, IDC_EDIT6, Y3);
	DDX_Control(pDX, IDC_EDIT1, m_X1);
	DDX_Control(pDX, IDC_EDIT2, m_X2);
	DDX_Control(pDX, IDC_EDIT3, m_X3);
	DDX_Control(pDX, IDC_EDIT4, m_Y1);
	DDX_Control(pDX, IDC_EDIT5, m_Y2);
	DDX_Control(pDX, IDC_EDIT6, m_Y3);
}



BOOL cInit::OnInitDialog()
{
	CDialog::OnInitDialog();
	// TODO:  Add extra initialization here
	this->m_X1.SetDlgItemInt(IDC_EDIT1, theApp.Treug.GetX1());
	this->m_X2.SetDlgItemInt(IDC_EDIT2, theApp.Treug.GetX2());
	this->m_X3.SetDlgItemInt(IDC_EDIT3, theApp.Treug.GetX3());
	this->m_Y1.SetDlgItemInt(IDC_EDIT4, theApp.Treug.GetY1());
	this->m_Y2.SetDlgItemInt(IDC_EDIT5, theApp.Treug.GetY2());
	this->m_Y3.SetDlgItemInt(IDC_EDIT6, theApp.Treug.GetY3());
	UpdateData(FALSE);

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}

Соседние файлы в папке Laba1