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

#include "stdafx.h"
#include "GLlab.h"
#include "Dlg3d.h"

#include <gl\gl.h>
#include <gl\glu.h>

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

/////////////////////////////////////////////////////////////////////////////
// Dlg3d dialog


Dlg3d::Dlg3d(CWnd* pParent /*=NULL*/)
	: CDialog(Dlg3d::IDD, pParent)
{
	//{{AFX_DATA_INIT(Dlg3d)
	m_dX = _T("0.0");
	m_dY = _T("0.0");
	m_dZ = _T("0.0");
	m_Angle = 0;
	//}}AFX_DATA_INIT
	
	Rotate[0]=0;Rotate[1]=0;Rotate[2]=0;
}


void Dlg3d::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Dlg3d)
	DDX_Text(pDX, IDC_EDIT6, m_dX);
	DDX_Text(pDX, IDC_EDIT7, m_dY);
	DDX_Text(pDX, IDC_EDIT8, m_dZ);
	DDX_Text(pDX, IDC_EDIT9, m_Angle);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Dlg3d, CDialog)
	//{{AFX_MSG_MAP(Dlg3d)
	ON_BN_CLICKED(IDC_CHECK4, OnCheck4)
	ON_BN_CLICKED(IDC_CHECK5, OnCheck5)
	ON_BN_CLICKED(IDC_CHECK6, OnCheck6)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Dlg3d message handlers

void Dlg3d::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(true);

	CDialog::OnOK();
}


BOOL Dlg3d::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here

	UpdateData(false);

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

void Dlg3d::OnCheck4() 
{
	// TODO: Add your control notification handler code here
	Rotate[0]=1;
	
}

void Dlg3d::OnCheck5() 
{
	// TODO: Add your control notification handler code here
	Rotate[1]=1;

}

void Dlg3d::OnCheck6() 
{
	// TODO: Add your control notification handler code here
	Rotate[2]=1;
	
}
Соседние файлы в папке GLlab5